Porting other faction's UI feature: Difference between revisions
(under construction) |
(twui) |
||
Line 9: | Line 9: | ||
==== Getting Original Code ==== | ==== Getting Original Code ==== | ||
[[File:Harmony.png|center|thumb]] | [[File:Harmony.png|center|thumb]] | ||
First, you want to check the path and some component names by playing the Cathay and checking the path to the UI by using the component viewer. You can turn this feature on by checking the check box in the settings and pressing the` button (the one on your upper left) in your keyboard | First, you want to check the path and some component names by playing the Cathay and checking the path to the UI by using the component viewer. You can turn this feature on by checking the check box in the settings and pressing the ` button (the one on your upper left) in your keyboard | ||
[[File:Twui.png|center|thumb]] | [[File:Twui.png|center|thumb]] | ||
On hud_campaign_resource_bar_wh3.twui.xml, you'll find the twui parts responsible for it. Now it's time to copy it and make our own. | On hud_campaign_resource_bar_wh3.twui.xml, you'll find the twui parts responsible for it. Now it's time to copy it and make our own. | ||
==== Making own twui ==== | |||
Now for Hierarchy, we want to copy 'Root' and all harmony-related parts. So the hierarchy part will look like below. | |||
[[File:Harmony hierarchy.png|center|thumb]] | |||
# Now for the component part, we want to copy every component mentioned in the hierarchy, including the root. | |||
# After that, we want to change the pooled resource name and effect bundle name into what we have set. | |||
# As a final step, we want to feed the hairy robot a twui we made to change the guide | |||
[[File:Guid regen.png|center|thumb]] | |||
Congratulations, now you just finished your own twui. Now we have to show it to people via script. | |||
(Under Construction) | (Under Construction) |
Revision as of 11:06, 7 July 2023
This tutorial talks about how to create a custom twui based on other vanilla UI
Synopsis
Let's say I want to create a new feature for Wurrzag based on his dancing. Huh, what does dancing have to do with Total War and how are we going to represent it? Maybe I should focus on the rhythm of the dancing and fitting the perfect harmony. And for that, we should Harmony feature used by Cathay.
(I'm going to skip all the pooled resource parts, for that look at other tutorials)
Getting Original Code
First, you want to check the path and some component names by playing the Cathay and checking the path to the UI by using the component viewer. You can turn this feature on by checking the check box in the settings and pressing the ` button (the one on your upper left) in your keyboard
On hud_campaign_resource_bar_wh3.twui.xml, you'll find the twui parts responsible for it. Now it's time to copy it and make our own.
Making own twui
Now for Hierarchy, we want to copy 'Root' and all harmony-related parts. So the hierarchy part will look like below.
- Now for the component part, we want to copy every component mentioned in the hierarchy, including the root.
- After that, we want to change the pooled resource name and effect bundle name into what we have set.
- As a final step, we want to feed the hairy robot a twui we made to change the guide
Congratulations, now you just finished your own twui. Now we have to show it to people via script.
(Under Construction)