Jump to content

Recommended Posts

W9601Tk.png

 

Hello everyone!

 

I noticed that the GUI_GRID variable used by the GUI Editor was broken and it bothered me for months now. With more experience in sqf language and some basic modding knowledge I was able to adjust the settings of the GUI Editor (though BIS didn't make it easy for me...).

 

What does this mod do?

This mod makes the GUI_GRID variable, which is selected by default in the GUI Editor, usable again.

 

What is the GUI_GRID variable?

Quote

GUI_GRID

Grid used in majority of game's menus, does not use pixel accurate coordinates. Affected only by interface size, giving user ability to customize its scale on the screen. Designed to use only 40x25 grids (i.e., size on 16:10 screen with Very Large interface size), although some menus may be stretched to fill the whole screen. Never gets smaller than 40x25 grids.

Default grid in the User Interface Editor.

- GUI Coordinates BIKI page

 

It is usually defined in the description.ext/config.cpp/dialog.hpp/defines.hpp:

// Default grid
#define GUI_GRID_WAbs ((safezoneW / safezoneH) min 1.2)
#define GUI_GRID_HAbs (GUI_GRID_WAbs / 1.2)
#define GUI_GRID_W    (GUI_GRID_WAbs / 40)
#define GUI_GRID_H    (GUI_GRID_HAbs / 25)
#define GUI_GRID_X    (safezoneX)
#define GUI_GRID_Y    (safezoneY + safezoneH - GUI_GRID_HAbs)

 

Where can I get it?

From the Steam Workshop: https://steamcommunity.com/sharedfiles/filedetails/?id=1392852622

Source files: https://github.com/7erra/GUI_GRID-Fix

 

How do I use it?

Simply open up the GUI Editor in the escape menu. The default grid will already be adjusted.

 

Is it biodegradable?

What?

 

Where can I report bugs?

Please be sure to check GitHub whether your issue is already known.

 

I hope I could help anyone who wanted to use the GUI_GRID,

 

7erra

  • Like 2

Share this post


Link to post
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now

×