Jump to content

Custom Dew Collector UI


Recommended Posts

I'm hoping someone can help me, I have been working on a modlet what adds 3 new Dew collators to the game each upgradeable from the last which I have all working but I cant work out how to get each one a custom UI with the correct types name across the top ect. I would be so grateful if someone can help me out.

Link to comment
Share on other sites

I reckon the Config/Xui/xui.xml is a good place to start with the default being:

 

        <window_group name="dewcollector" left_panel_valign_top="false" controller="XUiC_DewCollectorWindowGroup" close_compass_on_open="true">
            <window name="windowDewCollector"/>
            <window name="windowNonPagingHeader" />
        </window_group>

and that hooking up to the localization.txt for:

 

xuiDewCollector,UI,XUI,,,Dew Collector,,...............

 

Since your plan is to have 3 stages, that'll be 3 custom ones with different names and matching block name hooked up directly so far for window_group name and other locations using the above as a template.

 

xuiDewCollectorWE1,UI,XUI,,,Slow Dew Collector,,...............

xuiDewCollectorWE2,UI,XUI,,,Medium Dew Collector,,...............

xuiDewCollectorWE3,UI,XUI,,,Fast Dew Collector,,...............

 

and so on depending on how you want to do it.

 

I did something similar for the Wild West Mod but just wanted a variable helper so players could choose from two types. The Window name was just 'Water Collector' and their blocks had the customised title instead. It depends to what level of customisation you want.

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...