seems to be working for no reason?
Had to go the global in cui create route
more stuff into class, reordering
lots of code moved into class

global used for now, but plan to phase out
most adh stuff into class
progress - explanation commit

assume-global may be on, but class vars (this.that) can still be used
Also to use tmp vars, can declare a var local
Not that much use in init - still needs converting, but v useful for
create_gui
removed adh_num_hotkeys - pointless

use adh_hotkeys.MaxIndex() instead
re-enabled debug
moving var to class...
example of using local var in create_gui
another var to class
another var
another var, comment improved
oops, fixed typo bug
proof of concept for detection of gui move in

but problem - needs to refer to class name inside class
a bit lame to hard code name inside class
gui_x now class var
debug pos now based on current pos not load pos
profile_list in class
most vars in class
just debug to go before removing global from init