Changes
Jump to navigation
Jump to search
← Older edit
Newer edit →
Modding:Common tasks
(view source)
Revision as of 04:52, 24 May 2018
14 bytes added
,
04:52, 24 May 2018
no edit summary
Line 211:
Line 211:
MapPage mapPage = (MapPage) pages[menu.currentTab];
MapPage mapPage = (MapPage) pages[menu.currentTab];
−
// Two examples
for
checking if MapPage is open
+
// Two examples
of
checking if MapPage is open
−
pages[menu.currentTab] is MapPage
+
pages[menu.currentTab] is MapPage
||
menu.currentTab ==
GameMenu.mapTab;
−
menu.currentTab ==
3
}
}
</source>
</source>
Bouhm
17
edits
Navigation menu
Personal tools
Create account
Log in
Namespaces
Modding
Discussion
Variants
Views
Read
View source
View history
More
Search
Navigation
Main page
Recent changes
Admin noticeboard
Help Editing
Random page
Official Links
Official Site
Official Forums
Official Merchandise
Discord
Reddit
Tools
Upload file
Special pages
Printable version