Aaa123344523421 Posted December 1, 2024 Share Posted December 1, 2024 Hi! Could you please tell how to change server creation screen? For example, “Host Game” title. I have some difficulties with this. 1) Function AddClassPostCunstruct function doesn't give any result and for some reason it executes only after logging on to the server: AddClassPostConstruct('screens/redux/servercreationscreen', function(self) self.title = "123 Test" end) 2) Changing the values via GLOBAL.require didn't help either. I suspect this may be because the screen manages to initialize with the standard values faster than I change them. Link to comment https://forums.kleientertainment.com/forums/topic/161651-changing-screen-title/ Share on other sites More sharing options...
Aaa123344523421 Posted December 1, 2024 Author Share Posted December 1, 2024 Well, now I found serverslotscreen and manageserverslotscreen, they are all strongly related. Perhaps one of these screens overwrites the value of servercreationscreen.title. Logically, it would be possible to change STRINGS.UI.SERVERCREATIONSCREEN.HOST_GAME. But this is not the main goal. I would like to understand the logic in which sequence this screen is rendered and which class I need to edit eventually. @Valericoe Link to comment https://forums.kleientertainment.com/forums/topic/161651-changing-screen-title/#findComment-1766701 Share on other sites More sharing options...
Aaa123344523421 Posted December 4, 2024 Author Share Posted December 4, 2024 Thanks to this https://forums .kleientertainment.com/forums/topic/151477-addclasspostconstruct-on-a-screen/?do=findComment&comment=1670362 I understood where to start. Now I have issues with AddClassPostConstruct, but I suppose this is a theme for another topic. I hope that this scheme will be useful for someone. Link to comment https://forums.kleientertainment.com/forums/topic/161651-changing-screen-title/#findComment-1768316 Share on other sites More sharing options...
Aaa123344523421 Posted December 4, 2024 Author Share Posted December 4, 2024 I figured out how to change the header value. I think I should have paid more attention to the source code local Templates = require "widgets/redux/templates" AddClassPostConstruct("screens/redux/serverslotscreen", function(self) self.title = self.root:AddChild(Templates.ScreenTitle("123 Test")) end) Link to comment https://forums.kleientertainment.com/forums/topic/161651-changing-screen-title/#findComment-1768570 Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now