Moderator: MacroQuest Developers
Code: Select all
GTime=3,2,118,172,0,204,255, ${If[${GameTime.Hour} > 11,${Int[${Math.Calc[${GameTime.Hour}-12]}]},${GameTime.Hour}]}:${If[${GameTime.Minute} < 10,0${GameTime.Minute},${GameTime.Minute}]} ${If[${GameTime.Hour} > 11,PM,AM]}This is what I use. its associated with a command in the macro that lets people switch the hud time display between game and RL time.Gurash wrote: ↑Wed Sep 12, 2018 7:16 pmAll it does is display just the game time hours and minutes since seconds always show as 00, which is silly. Also, had to add that extra code for minutes because it doesn't automatically place a 0 in front of them if they are less than 10. The same applies to hours, but that's okay.Code: Select all
GTime=3,2,118,172,0,204,255, ${If[${GameTime.Hour} > 11,${Int[${Math.Calc[${GameTime.Hour}-12]}]},${GameTime.Hour}]}:${If[${GameTime.Minute} < 10,0${GameTime.Minute},${GameTime.Minute}]} ${If[${GameTime.Hour} > 11,PM,AM]}
Code: Select all
/noparse /ini HUDPATH "time1" "19,360,132,146,149,180,${If[${HUDTime} || !${coreBuild},${Time.Time24},${GameTime}]}"