How do I set the coordinates in the medal screen ?
Printable View
How do I set the coordinates in the medal screen ?
- Please, use more descriptive titles for your threads
something like "hey i want help" says nothing, and people will probably think you are just trolling (and your name doesn't help at all)
- You have to give us as much detail as possible about your problem
what coordinates are you talking about?
what do you want to do?
and what have you already tried to do to get what you want?
- May I ask you, where are you from? and in which clan are you? (if you are in one)
go in offline game in mohaa and type --> coord <-- in console
it doesnt work in online server... only offline game
iam form egypt i cant write a english very well
You try and fail, as far as I know this is old enough game to not have feature like in other games, where you go to developer mode and just drag cursor around screen to know UI coordinates.
@noobboy, If you are talking about the coordinates to use in a huddraw element, then it depends on 2 factors
One is the huddraw_align command. With it you can set the alignment of the HUD (left/center/right and top/center/bottom)
and the other is the huddraw_rect command, which is used to set the exact position of the HUD in pixels.
Now, the position of the 0,0 coordinates used in the huddraw_rect command will depend of the alignment you set with the huddraw_align command.
For example, this code has all the 9 possible alignments of a huddraw element. (you can see the result in the screenshot below).
Please copy it, play with it and try to learn from it before asking something else.
local.index = 33
// LEFT
huddraw_virtualsize local.index 0
huddraw_align local.index "left" "top"
huddraw_color local.index 1 1 1
huddraw_font local.index "facfont-20"
huddraw_rect local.index 0 0 0 0
huddraw_string local.index ".left-top"
huddraw_alpha local.index 1
local.index++
huddraw_virtualsize local.index 0
huddraw_align local.index "left" "center"
huddraw_color local.index 1 1 1
huddraw_font local.index "facfont-20"
huddraw_rect local.index 0 0 0 0
huddraw_string local.index ".left-center"
huddraw_alpha local.index 1
local.index++
huddraw_virtualsize local.index 0
huddraw_align local.index "left" "bottom"
huddraw_color local.index 1 1 1
huddraw_font local.index "facfont-20"
huddraw_rect local.index 0 -14 0 0
huddraw_string local.index ".left-bottom"
huddraw_alpha local.index 1
// CENTER
local.index++
huddraw_virtualsize local.index 0
huddraw_align local.index "center" "top"
huddraw_color local.index 1 1 1
huddraw_font local.index "facfont-20"
huddraw_rect local.index -42 0 0 0
huddraw_string local.index "center.top"
huddraw_alpha local.index 1
local.index++
huddraw_virtualsize local.index 0
huddraw_align local.index "center" "center"
huddraw_color local.index 1 1 1
huddraw_font local.index "facfont-20"
huddraw_rect local.index -42 -15 0 0
huddraw_string local.index "center.center"
huddraw_alpha local.index 1
local.index++
huddraw_virtualsize local.index 0
huddraw_align local.index "center" "bottom"
huddraw_color local.index 1 1 1
huddraw_font local.index "facfont-20"
huddraw_rect local.index -42 -15 0 0
huddraw_string local.index "center.bottom"
huddraw_alpha local.index 1
// RIGHT
local.index++
huddraw_virtualsize local.index 0
huddraw_align local.index "right" "top"
huddraw_color local.index 1 1 1
huddraw_font local.index "facfont-20"
huddraw_rect local.index -60 0 0 0
huddraw_string local.index "right-top."
huddraw_alpha local.index 1
local.index++
huddraw_virtualsize local.index 0
huddraw_align local.index "right" "center"
huddraw_color local.index 1 1 1
huddraw_font local.index "facfont-20"
huddraw_rect local.index -80 0 0 0
huddraw_string local.index "right-center."
huddraw_alpha local.index 1
local.index++
huddraw_virtualsize local.index 0
huddraw_align local.index "right" "bottom"
huddraw_color local.index 1 1 1
huddraw_font local.index "facfont-20"
huddraw_rect local.index -80 -20 0 0
huddraw_string local.index "right-bottom."
huddraw_alpha local.index 1
https://i.imgur.com/2qNbkrw.png