{"id":16,"date":"2008-03-06T03:59:00","date_gmt":"2008-03-06T08:59:00","guid":{"rendered":"http:\/\/lukerymarz.com\/alearningexperience\/2008\/03\/menu-system-continued.html"},"modified":"2008-03-06T03:59:00","modified_gmt":"2008-03-06T08:59:00","slug":"menu-system-continued","status":"publish","type":"post","link":"http:\/\/lukerymarz.com\/alearningexperience\/2008\/03\/menu-system-continued.html","title":{"rendered":"Menu System, Continued"},"content":{"rendered":"<p>Okay, the menu system is coming a long nicely.  I&#8217;ve got it displaying on the screen where I want it, and it is doing the collision detection work to select options with the mouse and keyboard.  I&#8217;ll save the events for tomorrow.<\/p>\n<p>The only change to the below code is that you have to pass the Game class when you create the menu (I&#8217;ve created the menu system as a DrawableGameComponent):<\/p>\n<p><!-- {\\rtf1\\ansi\\ansicpg\\lang1024\\noproof1252\\uc1 \\deff0{\\fonttbl{\\f0\\fnil\\fcharset0\\fprq1 Courier New;}}{\\colortbl;??\\red0\\green0\\blue0;\\red255\\green255\\blue255;\\red0\\green0\\blue255;\\red43\\green145\\blue175;}??\\fs20 menu = \\cf3 new\\cf0  \\cf4 Menu\\cf0 (\\cf3 this\\cf0 );} --> <\/p>\n<div style=\"background: white none repeat scroll 0% 50%; font-family: Courier New; font-size: 10pt; color: black; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial;\">\n<p style=\"margin: 0px;\">menu = <span style=\"color: blue;\">new<\/span> <span style=\"color: rgb(43, 145, 175);\">Menu<\/span>(<span style=\"color: blue;\">this<\/span>);<\/p>\n<\/div>\n<p>I&#8217;m using a bitmap font class that I got <a href=\"http:\/\/blogs.msdn.com\/garykac\/archive\/2006\/08\/30\/728521.aspx\">here <\/a>to do the work of displaying the text.  The only problem I can see with using this class is that it will force me into a certain font&#8230;  It&#8217;s pretty well designed though, so it has made it a lot easier to get going.  I&#8217;ll have to visit different fonts later.  Right now, Times New Roman is my best friend.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Okay, the menu system is coming a long nicely. I&#8217;ve got it displaying on the screen where I want it, and it is doing the collision detection work to select options with the mouse and keyboard. I&#8217;ll save the events for tomorrow. The only change to the below code is that you have to pass [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_monsterinsights_skip_tracking":false,"_monsterinsights_sitenote_active":false,"_monsterinsights_sitenote_note":"","_monsterinsights_sitenote_category":0,"footnotes":""},"categories":[3],"tags":[],"class_list":["post-16","post","type-post","status-publish","format-standard","hentry","category-xna"],"_links":{"self":[{"href":"http:\/\/lukerymarz.com\/alearningexperience\/wp-json\/wp\/v2\/posts\/16","targetHints":{"allow":["GET"]}}],"collection":[{"href":"http:\/\/lukerymarz.com\/alearningexperience\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/lukerymarz.com\/alearningexperience\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/lukerymarz.com\/alearningexperience\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/lukerymarz.com\/alearningexperience\/wp-json\/wp\/v2\/comments?post=16"}],"version-history":[{"count":0,"href":"http:\/\/lukerymarz.com\/alearningexperience\/wp-json\/wp\/v2\/posts\/16\/revisions"}],"wp:attachment":[{"href":"http:\/\/lukerymarz.com\/alearningexperience\/wp-json\/wp\/v2\/media?parent=16"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/lukerymarz.com\/alearningexperience\/wp-json\/wp\/v2\/categories?post=16"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/lukerymarz.com\/alearningexperience\/wp-json\/wp\/v2\/tags?post=16"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}