Stellaris

Stellaris

Modify the Galaxy
Modify your Stellaris experience by checking out the many mods created and shared by the community, including tweaks to almost any aspect of the game.
Learn More
Eriduan 2 14 Jun, 2020 @ 10:41am
The "F" button (GoTo) is making me crazy. How to properly change it with a mod?
how to change the F button?

how to create a proper file for mod, that will make this edited shortcut functional in game?

As I am using WASD for movement in galaxy, so I am constantly hitting f button and that search window must be closed via ESC ... so it breakes immersion, and my concentration.

I found this file

..\Stellaris\interface\main_bottom.gui

inside there is a code with shortcut "f"
So I made a mod. Copied the main_bottom.gui file into my new mod
Renamed the copied file, and replaced the shortcut F with different -> "h"..
but it didn't work.

code of my snippet (for this forum i just deleted parts of code, that doesn't directly belongs to this shortcut. but in my Mod file there is a full code without clensing)
guiTypes = { positionType = { name = "control_groups_min_from_center" position = { x = 246 y = 0 } } #Adjusts offset for tooltips for all elements at the bottom of the screen @tt_offset_y = 0 containerWindowType = { name = "maingui_bottombar" size = { width = 100% height = 100% } ## Control Groups overlappingElementsBoxType = { name = "control_groups" position = { x = 4 y = -46 } size = { x=700 y= 13 } spacing = 2 Orientation = "LOWER_LEFT" format = left } .....blabla..... # Lower right toolbar containerWindowType = { name = "toolbar" position = { x = -379 y = -36 } size = { width = 379 height = 36 } orientation = lower_right clipping = no background = { name = "bg" quadTextureSprite = "GFX_topbar_background" position = { x = 0 y = 0 } } .....blabla..... buttonType = { name = "toggle_gotobox" quadTextureSprite = "GFX_button_60_29" position = { x= -287 y = -45 } -------this------> shortCut = "h" pdx_tooltip = "GOTOBOX_HEADER" pdx_tooltip_anchor_offset = { x= 0 y = @tt_offset_y } pdx_tooltip_anchor_orientation = lower_left orientation = lower_right clicksound = confirm_click } iconType = { name = "toggle_gotobox_icon" spriteType = "GFX_search_icon" position = { x= -271 y = -35 } orientation = lower_right alwaystransparent = yes }
Last edited by Eriduan; 15 Jun, 2020 @ 5:20am
Date Posted: 14 Jun, 2020 @ 10:41am
Posts: 0