Page 1 of 1
Displaying Resources
Posted: Tue Feb 27, 2024 8:37 am
by Secg
Afaik, up to the last eight digits of the numbers of player-possessed Plastic & Electricity are visible.
When players start with
50,000,000 Plastic &
20,000,000 Electricity:
When players start with
99,999,999 Plastic &
99,999,999 Electricity:
When players start with
500,000,000 Plastic &
200,000,000 Electricity:
Anyone knows how to change the amount of last digits visible (e.g. from last eight digits to last nine digits)?
Thanks beforehand,
Secg!
Re: Displaying Resources
Posted: Tue Feb 27, 2024 10:36 am
by TommyCD1
The digits displayed are limited only by the size of the actual control displaying them. To get more digits, you simply need to increase the width of the control.
This can be done by opening the file
if_game_resourcewindow.cfg, located within
client\p\ingame.x and changing line 23
Code: Select all
DefineControlType("Client::Resource::Base", "Client::Resource")
{
Size(202, 26); // default value 202 pixels wide
Style("Transparent", "Inert");
Geometry("Right");
ShowSeen(1);
FilterRate(80%);
}
Code: Select all
DefineControlType("Client::Resource::Base", "Client::Resource")
{
Size(640, 26); // change to what is needed
Style("Transparent", "Inert");
Geometry("Right");
ShowSeen(1);
FilterRate(80%);
}
Just keep in mind that this may cause the resources numbers to bleed into or over top other interface elements once high enough, such as on screen timers.
Re: Displaying Resources
Posted: Tue Feb 27, 2024 12:27 pm
by Secg
TommyCD1 wrote: ↑Tue Feb 27, 2024 10:36 am
This can be done by opening the file
if_game_resourcewindow.cfg, located within
client\p\ingame.x and changing line 23
Code: Select all
DefineControlType("Client::Resource::Base", "Client::Resource")
{
Size(202, 26); // default value 202 pixels wide
Style("Transparent", "Inert");
Geometry("Right");
ShowSeen(1);
FilterRate(80%);
}
Code: Select all
DefineControlType("Client::Resource::Base", "Client::Resource")
{
Size(640, 26); // change to what is needed
Style("Transparent", "Inert");
Geometry("Right");
ShowSeen(1);
FilterRate(80%);
}
I also haphazardly guessed that specific file should be modded. However, instead of subjecting myself to trials and errors, I lazily came here for a quick solution.
Thanks for your help (
) as always,
TommyCD1!
EDIT: It works (
)!
Vanilla Code:
Code: Select all
DefineControlType("Client::Resource::Base", "Client::Resource")
{
Size(202, 26); // default value 202 pixels wide
Style("Transparent", "Inert");
Geometry("Right");
ShowSeen(1);
FilterRate(80%);
}
Modded Code:
Code: Select all
DefineControlType("Client::Resource::Base", "Client::Resource")
{
Size(228, 26); // change to what is needed
Style("Transparent", "Inert");
Geometry("Right");
ShowSeen(1);
FilterRate(80%);
}
Result: