About This File
Have you ever wondered how many jobs of each wealth level a work building supports? This Mod adds three bars to the civic, commercial and industrial buildings rollovers that gives you just that information. It will also help you make informed decisions in regards to zoning for residential buildings.
In order to make this Mod, I created a new piece of UI with a matching data binding function. Fortunately, there was already an example similar to what I wanted to do in the MegaTower Office level rollover, so my first task was to copy the layout with the three bars into a new file.
I then looked up how the worker data was fed into the bars in the rollover, and copied that piece of JavaScript into another file. Because of the way the UI is packed in the game, I had to find a JavaScript file that is packed by itself rather than add the function to the main (and very long) UI file. To do this, I opened the Mayor Rating UI file and pasted the code at the bottom of it. I renamed the original “kSkyTowerLevelOfficePopulation” function to “kWorkers” and encoded it to “0xe15027f1”.
Finally, I went through all the units in the game that have workers (I actually looked for the code for “kMaintenance” and combed through the results) and added the new rollover item’s ID to their list of extended rollover data.
What's New 2.41
Released
- Reposted with informative data.
-
7
-
2

Supported

Recommended Comments
Sign In or register to comment...
To comment in reply, you must be a community member
Sign In
Already have an account? Sign in here.
Sign In NowCreate an Account
Sign up to join our friendly community. It's easy!
Register a New Account