Timestamp:
Oct 17, 2021, 12:58:51 PM (3 years ago)
Author:
Silier
Message:

There have been quite a bit of number of questions how to change scale of the gui, because this option is hidden from the user.

Use dropdown with values. Implement confirmation box with countdown to revert scale change because buttons can get unable to click.

Differential revision: D3037
Comments by: @vladislavbelov, @Stan, @wraitii, @pieq, @sera
Tested by: @Langbart

File:
1 edited

Legend:

Unmodified
Added
Removed
  • ps/trunk/binaries/data/mods/public/gui/options/options.js

    r24445 r25966  
    147147        }
    148148    },
     149
     150
     151
     152
     153
     154
     155
     156
     157
     158
     159
     160
     161
     162
     163
     164
     165
     166
     167
     168
     169
     170
     171
     172
     173
     174
     175
     176
     177
    149178    "slider":
    150179    {
     
    243272                optionType.sanitizeValue(value, control, option);
    244273
     274
     275
    245276            control.tooltip = option.tooltip + (optionType.tooltip ? "\n" + optionType.tooltip(value, option) : "");
    246277
     278
    247279            Engine.ConfigDB_CreateValue("user", option.config, String(value));
    248280            Engine.ConfigDB_SetChanges("user", true);
     
    250282            g_ChangedKeys.add(option.config);
    251283            fireConfigChangeHandlers(new Set([option.config]));
     284
     285
     286
    252287
    253288            if (option.function)
     
    314349    Engine.ConfigDB_WriteFile("user", "config/user.cfg");
    315350    revertChanges();
     351
     352
     353
     354
     355
     356
     357
     358
     359
     360
     361
     362
    316363}
    317364
Note: See TracChangeset for help on using the changeset viewer.