Changes
Jump to navigation
Jump to search
← Older edit
Newer edit →
Modding:Common tasks
(view source)
Revision as of 04:51, 24 May 2018
111 bytes added
,
04:51, 24 May 2018
no edit summary
Line 210:
Line 210:
// Example for getting the MapPage
// Example for getting the MapPage
MapPage mapPage = (MapPage) pages[menu.currentTab];
MapPage mapPage = (MapPage) pages[menu.currentTab];
+
+
// Two examples for checking if MapPage is open
+
pages[menu.currentTab] is MapPage
+
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