• Listen to a special audio message from Bill Roper to the Hive Workshop community (Bill is a former Vice President of Blizzard Entertainment, Producer, Designer, Musician, Voice Actor) 🔗Click here to hear his message!
  • Read Evilhog's interview with Gregory Alper, the original composer of the music for WarCraft: Orcs & Humans 🔗Click here to read the full interview.
  • The Hive's 22nd Icon Contest: Creep Abilities is now concluded, time to vote for your favourite set of icons! Click here to vote!
  • ✅ The POLL for Hive's Texturing Contest #34 is OPEN! Vote for the TOP 3 SKINS! 🔗Click here to cast your vote!
  • ✅ The POLL for Hive's Techtree Contest #20 is OPEN! Vote for the TOP 3 FACTIONS! 🔗Click here to cast your vote!

How to hide/move the Time of Day Indicator (clock) with Lua custom frames

Level 4
Joined
Apr 30, 2019
Messages
19
Hello,

I am working on UI modding in Warcraft III Reforged using Lua custom frames. I have already identified many frames (ConsoleUI, ResourceBarFrame, Inventory, CommandButtons, etc.). With ORIGIN_FRAME_PORTRAIT I was able to hide or move the unit portrait successfully.

The only element I still cannot handle is the Time of Day Indicator (the clock at the top). When I try to hide it with BlzFrameSetVisible or by using BlzGetFrameByName("TimeOfDayIndicator",0), the UI breaks or the frame does not respond.

I noticed that in maps like Castle Revival ARPG the author managed to remove or relocate the clock, so I believe there is a correct origin frame or method for it when working with Lua custom frames.

My question: Which frame or origin frame should be used in Lua to safely hide or move the Time of Day Indicator in Reforged, without breaking the UI?

Any guidance or examples from those who have already done this would be greatly appreciated. Thank you!
 
Back
Top