MCPcopy Create free account
hub / github.com/ClassiCube/ClassiCube / ChatOptionsScreen_SetScale

Function ChatOptionsScreen_SetScale

src/MenuOptions.c:829–833  ·  view source on GitHub ↗

#######################################################################################################################* *----------------------------------------------------ChatOptionsScreen-----------------------------------------------------* *#########################################################################################################################*/

Source from the content-addressed store, hash-verified

827*----------------------------------------------------ChatOptionsScreen-----------------------------------------------------*
828*#########################################################################################################################*/
829static void ChatOptionsScreen_SetScale(const cc_string* v, float* target, const char* optKey) {
830 *target = Menu_Float(v);
831 Options_Set(optKey, v);
832 Gui_LayoutAll();
833}
834
835static cc_bool ChO_GetAutoScaleChat(void) { return Gui.AutoScaleChat; }
836static void ChO_SetAutoScaleChat(cc_bool v) {

Callers 4

ChO_SetChatScaleFunction · 0.85
GuO_SetHotbarFunction · 0.85
GuO_SetInventoryFunction · 0.85
GuO_SetCrosshairFunction · 0.85

Calls 3

Menu_FloatFunction · 0.85
Options_SetFunction · 0.85
Gui_LayoutAllFunction · 0.85

Tested by

no test coverage detected