Page 1 of 1

Global Settings Class

Posted: 25 Sep 2022, 11:27
by murataygun
Is it ok to create a class and keep variables in it and use everywhere?

for example;

Code: Select all


Global Settings := new Settings_class()

class Settings_class {

	width := 500
	height := 400

}


class bla{
   createGui() {
       gui, w % Settings.width%,
    ;---
}

class bla2{
   createGui() {
      gui, w % Settings.width, 
    ;---
}

}