iamclint / CJOpenHud

Open source hud tool for cj on cod4
4 stars 2 forks source link

INI File #1

Open Daxy7 opened 10 months ago

Daxy7 commented 10 months ago

Can we also have a INI file to configure our preferences? .

// hud elements position on screen
xyzc=0,0,0
pyrc=0,0,0
speedometerc=0,0,0

and hide elements

// boolean
xyz=true/false
pyr=true/false
speedometer=true/false

toggle elements with keybind

// numbers, numpad, f1-12, board of keys
xyz=[key]
pyr=[key]
speedometer=key

. Thankyou. If you can't do the last/will take a long time, I don't mind if it's excluded/done in the far future.

iamclint commented 10 months ago

As far as the xy position you can just click and drag the pieces and imgui saves where they are, you can find them in the imgui ini file if you want to manually adjust, as far as preferences being saved I would likely use Json but this project is open source so feel free to make a pull request

Daxy7 commented 10 months ago

Collapsed=1 hides the boxes?

Daxy7 commented 10 months ago

We can make ImGui::TextColored editable in INI so editing all to 0 would make it transparent? Am not experienced in coding or CoD4 technicalities, dunno where to start editing the source files.