New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Extended tile inspector #4414
Extended tile inspector #4414
Conversation
'Track piece ID' should probably be 'Track type', right? Also, I think it would be better to move the 'change ride type' stuff to the tile inspector (currently in the ride window), but I don't really have an idea as to how that could look. |
I disagree. It's something that concerns the entire ride (in about the same way as the chosen vehicle) and not a track element on a tile. |
@Gymnasiast until we implement the ability to swap ride type (track style) throughout the ride. But otherwise I agree. |
That's indeed what it means. At the time I made it I thought calling it type would be confusing. |
@@ -1165,6 +1165,8 @@ enum { | |||
STR_CONSTRUCTION_RIGHTS_NOT_FOR_SALE = 1727, | |||
STR_CANT_BUY_CONSTRUCTION_RIGHTS_HERE = 1728, | |||
STR_LAND_NOT_OWNED_BY_PARK = 1729, | |||
STR_LAND_NOT_OWNED_AND_NOT_AVAILABLE = 5933, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
String IDs should be sorted numerically.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I placed it there because they are very related, but I've moved everything down now.
0248898
to
09dfd5b
Compare
a211495
to
0b4e39a
Compare
The tile inspector is ready to be tested. I will rebase this on the develop branch tomorrow. |
Remember to update g2 if you want to test it |
Changes to |
https://github.com/Broxzier/OpenRCT2/blob/abccf603252fb3d9de3e354211a7ef7afb0415aa/src/windows/tile_inspector.c#L725 and https://github.com/Broxzier/OpenRCT2/blob/abccf603252fb3d9de3e354211a7ef7afb0415aa/src/windows/tile_inspector.c#L834 unused variable. The latter looks like it was meant to cache value, but you use original one anyway. https://github.com/Broxzier/OpenRCT2/blob/abccf603252fb3d9de3e354211a7ef7afb0415aa/src/windows/tile_inspector.c#L730 pointless, you override this value further down: https://github.com/Broxzier/OpenRCT2/blob/abccf603252fb3d9de3e354211a7ef7afb0415aa/src/windows/tile_inspector.c#L735 (which is the same what you initially set it to: https://github.com/Broxzier/OpenRCT2/blob/abccf603252fb3d9de3e354211a7ef7afb0415aa/src/windows/tile_inspector.c#L719) Same things in |
@@ -200,7 +200,7 @@ void window_guest_list_open() | |||
window->enabled_widgets = | |||
(1 << WIDX_CLOSE) | | |||
(1 << WIDX_PAGE_DROPDOWN) | | |||
(1 << WIDX_PAGE_DROPDOWN_BUTTON) | | |||
//(1 << WIDX_PAGE_DROPDOWN_BUTTON) | |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Just noticed aswell. 6586636 is a messed up commit. will fix this today.
@janisozaur: That check is to see if both pointers have been set, just to break out of the loop earlier. It can be replaced with
|
abccf60
to
95938a0
Compare
Rebased! Appveyor artifacts can be downloaded here: https://ci.appveyor.com/project/IntelOrca/openrct2-ject9/build/0.0.5.5356/job/iiw1ohv4eq38tltv/artifacts |
@@ -4230,8 +4230,70 @@ STR_5918 :{POP16}{POP16}{POP16}{POP16}{POP16}{POP16}{POP16}{POP16}{POP16}{COM | |||
STR_5919 :{COMMA16} | |||
STR_5920 :Render weather effects | |||
STR_5921 :{SMALLFONT}{BLACK}If enabled, rain and gloomy colours will be rendered during storms. | |||
<<<<<<< HEAD |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Shouldn't be here
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Removed with a second rebase now.
33684d1
to
e2a1654
Compare
Line 1335: stray For some reason the dropdown arrow on fence slope detail does not raise after it's released (stays in "clicked" state) Raising all 4 corners of surface yields weird results. Can you check if everything is correct in the code? Perhaps it would be better to have raising all 4 corners simply increase surface's base height a notch?
|
I have tested it a little now and posted my comments above. Otherwise it looks to do what it is meant to. 👍 |
strings should be in order, and code formatted was to make it more consistant
Corrupt elements are now placed right under the selected element Local tile-inspector variables now all use camelCaseNames Removed unused string, and shifted string IDs
@todo: For park entrances, the left and right tile do not show the entrance ID. Will solve this later.
These defines are used to calculate the edges of the widgets. They are now ordered in the same way the widgets are listed for the pages. This commit also adds some extra defines, to make it more easy to tweak the sizes and padding of widgets.
This commit also renamed a flag, and corrected the use of one. The flags in question are WALL_SCENERY_BANNER, WALL_SCENERY_2_FLAG4, and WALL_SCENERY_2_FLAG5.
- Replaces places where the first element was requested to use the same function
…ut have a position)
b801a31
to
e89cff2
Compare
e89cff2
to
1fcca77
Compare
@IntelOrca @duncanspumpkin If one of you could test and merge this, that would be appreciated. Rebasing on future conflicts will only costs me more time. |
@Broxzier two things which I will let you do in a follow up PR:
|
STR_5929 :Fence details | ||
STR_5930 :Large scenery details | ||
STR_5931 :Banner details | ||
STR_5932 :Currupt element details |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Typo - Currupt
should be Corrupt
This is still work-in-progress
Make sure to compile the sprite list before testing
To do so run:
openrct2.exe sprite build data\g2.dat ..\resources\g2
The biggest change to the tile inspector are the two new group boxes. When the player selects any of the elements, a group box with info, and another group box with properties will be shown. The content of those depends on the type. For rides it lists the ride name and track piece ID for example.
Surface
Info
Settings
Path
Info
Settings
Track
Info
Settings
Scenery
Info
Settings
Entrance
Info
Settings
Fence
Info
Settings
Large Scenery
Info
Settings
Banner
Info
Settings
Corrupt element
Info
...
Settings
Other things