Follow along with the video below to see how to install our site as a web app on your home screen.
Note: This feature may not be available in some browsers.
It should be were you would edit and replace the UI in the game , i believe its on the far right of the tabs on the top in the editor.. Im not home at the moment to help with this.View attachment 573394View attachment 573395
quick help, as the picture says, i tried scouring the text-general, but i can't find this one thingy "100%" does anyone know where is that located??
im planning to get rid it
Game Interface? yea, i've rid like 90% of tooltips from the food/gold upkeep, but that 100% i've been looking for it for an hour and i still cannot find it, not even on Gameplay Constant because mostly there are true/false and flat numbers...It should be were you would edit and replace the UI in the game , i believe its on the far right of the tabs on the top in the editor.. Im not home at the moment to help with this.

It may be permanently encoded in the game possibly.Game Interface? yea, i've rid like 90% of tooltips from the food/gold upkeep, but that 100% i've been looking for it for an hour and i still cannot find it, not even on Gameplay Constant because mostly there are true/false and flat numbers...![]()
but i've seen other maps completely removed it (usually the protected ones) and replaced it with fancy tooltips like "new version 1.30 blabla"It may be permanently encoded in the game possibly.
library ModifyUpkeepUI
globals
framehandle upkeepHoverButton = null
framehandle upkeepLabelText = null
framehandle upkeepTipBG = null
framehandle upkeepTipText = null
endglobals
private function HideUIByName takes string name, integer index returns nothing
local framehandle fh = BlzGetFrameByName(name, index)
if fh == null then
return
endif
// "Hide" by moving away + scaling tiny
call BlzFrameClearAllPoints(fh)
call BlzFrameSetAbsPoint(fh, FRAMEPOINT_CENTER, 3.0, 3.0)
call BlzFrameSetScale(fh, 0.001)
endfunction
private function CreateHoverButton takes nothing returns framehandle
local framehandle btn = BlzCreateFrameByType( "GLUETEXTBUTTON", "MyUpkeepHoverBtn", BlzGetOriginFrame(ORIGIN_FRAME_GAME_UI, 0), "ScriptDialogButton", 0)
// position/size where upkeep text is
call BlzFrameSetAbsPoint(btn, FRAMEPOINT_CENTER, 0.76, 0.59)
call BlzFrameSetSize(btn, 0.08, 0.02)
// invisible but still gets mouse hover
call BlzFrameSetText(btn, "")
call BlzFrameSetAlpha(btn, 0)
return btn
endfunction
private function CreateLabelOnButton takes framehandle btn, string text returns framehandle
local framehandle label = BlzCreateFrameByType("TEXT", "MyUpkeepLabel", BlzGetOriginFrame(ORIGIN_FRAME_GAME_UI, 0), "", 0)
// Place label exactly on top of the button.
call BlzFrameSetPoint(label, FRAMEPOINT_TOPLEFT, btn, FRAMEPOINT_TOPLEFT, 0.0, -0.001)
call BlzFrameSetPoint(label, FRAMEPOINT_BOTTOMRIGHT, btn, FRAMEPOINT_BOTTOMRIGHT, 0.0, -0.001)
// Appearance
call BlzFrameSetTextAlignment(label, TEXT_JUSTIFY_CENTER, TEXT_JUSTIFY_MIDDLE)
call BlzFrameSetText(label, text)
// Ensure label doesn't eat mouse input (so hover still hits button)
call BlzFrameSetEnable(label, false)
return label
endfunction
private function CreateTooltipForButton takes framehandle btn, string tip returns nothing
// Background template (looks like WC3 tooltip-ish)
set upkeepTipBG = BlzCreateFrame("QuestButtonBaseTemplate", BlzGetOriginFrame(ORIGIN_FRAME_GAME_UI, 0), 0, 0)
// Text inside background
set upkeepTipText = BlzCreateFrameByType("TEXT", "MyUpkeepTooltipText", upkeepTipBG, "", 0)
call BlzFrameSetTextAlignment(upkeepTipText, TEXT_JUSTIFY_MIDDLE, TEXT_JUSTIFY_CENTER)
// Adjust UI width and height
call BlzFrameSetSize(upkeepTipText, 0.2, 0.1)
call BlzFrameSetSize(upkeepTipBG, 0.2, 0.1)
// Background fits text with padding
call BlzFrameSetAbsPoint(upkeepTipText, FRAMEPOINT_CENTER, 0.7, 0.52)
call BlzFrameSetAbsPoint(upkeepTipBG, FRAMEPOINT_CENTER, 0.7, 0.52)
// Assign tooltip
call BlzFrameSetTooltip(btn, upkeepTipBG)
// Tooltip text should not take mouse
call BlzFrameSetEnable(upkeepTipText, false)
call BlzFrameSetText(upkeepTipText, tip)
endfunction
function InitMUU takes nothing returns nothing
// Hide the original upkeep title
call HideUIByName("ResourceBarUpkeepText", 0)
// Create invisible hover button
set upkeepHoverButton = CreateHoverButton()
// Create new label where the button is
set upkeepLabelText = CreateLabelOnButton(upkeepHoverButton, "Upkeep")
// Tooltip content
call CreateTooltipForButton(upkeepHoverButton, "Your custom upkeep text goes here!")
endfunction
endlibrary
ModifyUpkeepUI Init

Events


Time - Elapsed game time is 0.01 seconds

Conditions

Actions


-------- (WARNING - POTENTIAL DESYNC) --------


-------- It might be safer to delay this Action until you're certain that all Players are loaded in! --------


Custom script: call InitMUU()
Cool jass Uncle! unfortunately, i have little to no knowledge of manual codings, anyways i've already solve it by using the hex code, i don't plan to touch the UI frames itself because that will take time for me to tackleIf you're on 1.31+ (maybe 1.32+) then you can modify the UI frames yourself, just be careful of common desyncs. Here's an example:
vJASS:library ModifyUpkeepUI globals framehandle upkeepHoverButton = null framehandle upkeepLabelText = null framehandle upkeepTipBG = null framehandle upkeepTipText = null endglobals private function HideUIByName takes string name, integer index returns nothing local framehandle fh = BlzGetFrameByName(name, index) if fh == null then return endif // "Hide" by moving away + scaling tiny call BlzFrameClearAllPoints(fh) call BlzFrameSetAbsPoint(fh, FRAMEPOINT_CENTER, 3.0, 3.0) call BlzFrameSetScale(fh, 0.001) endfunction private function CreateHoverButton takes nothing returns framehandle local framehandle btn = BlzCreateFrameByType( "GLUETEXTBUTTON", "MyUpkeepHoverBtn", BlzGetOriginFrame(ORIGIN_FRAME_GAME_UI, 0), "ScriptDialogButton", 0) // position/size where upkeep text is call BlzFrameSetAbsPoint(btn, FRAMEPOINT_CENTER, 0.76, 0.59) call BlzFrameSetSize(btn, 0.08, 0.02) // invisible but still gets mouse hover call BlzFrameSetText(btn, "") call BlzFrameSetAlpha(btn, 0) return btn endfunction private function CreateLabelOnButton takes framehandle btn, string text returns framehandle local framehandle label = BlzCreateFrameByType("TEXT", "MyUpkeepLabel", BlzGetOriginFrame(ORIGIN_FRAME_GAME_UI, 0), "", 0) // Place label exactly on top of the button. call BlzFrameSetPoint(label, FRAMEPOINT_TOPLEFT, btn, FRAMEPOINT_TOPLEFT, 0.0, -0.001) call BlzFrameSetPoint(label, FRAMEPOINT_BOTTOMRIGHT, btn, FRAMEPOINT_BOTTOMRIGHT, 0.0, -0.001) // Appearance call BlzFrameSetTextAlignment(label, TEXT_JUSTIFY_CENTER, TEXT_JUSTIFY_MIDDLE) call BlzFrameSetText(label, text) // Ensure label doesn't eat mouse input (so hover still hits button) call BlzFrameSetEnable(label, false) return label endfunction private function CreateTooltipForButton takes framehandle btn, string tip returns nothing // Background template (looks like WC3 tooltip-ish) set upkeepTipBG = BlzCreateFrame("QuestButtonBaseTemplate", BlzGetOriginFrame(ORIGIN_FRAME_GAME_UI, 0), 0, 0) // Text inside background set upkeepTipText = BlzCreateFrameByType("TEXT", "MyUpkeepTooltipText", upkeepTipBG, "", 0) call BlzFrameSetTextAlignment(upkeepTipText, TEXT_JUSTIFY_MIDDLE, TEXT_JUSTIFY_CENTER) // Adjust UI width and height call BlzFrameSetSize(upkeepTipText, 0.2, 0.1) call BlzFrameSetSize(upkeepTipBG, 0.2, 0.1) // Background fits text with padding call BlzFrameSetAbsPoint(upkeepTipText, FRAMEPOINT_CENTER, 0.7, 0.52) call BlzFrameSetAbsPoint(upkeepTipBG, FRAMEPOINT_CENTER, 0.7, 0.52) // Assign tooltip call BlzFrameSetTooltip(btn, upkeepTipBG) // Tooltip text should not take mouse call BlzFrameSetEnable(upkeepTipText, false) call BlzFrameSetText(upkeepTipText, tip) endfunction function InitMUU takes nothing returns nothing // Hide the original upkeep title call HideUIByName("ResourceBarUpkeepText", 0) // Create invisible hover button set upkeepHoverButton = CreateHoverButton() // Create new label where the button is set upkeepLabelText = CreateLabelOnButton(upkeepHoverButton, "Upkeep") // Tooltip content call CreateTooltipForButton(upkeepHoverButton, "Your custom upkeep text goes here!") endfunction endlibrary
ModifyUpkeepUI Init
Events
Time - Elapsed game time is 0.01 seconds
Conditions
Actions
-------- (WARNING - POTENTIAL DESYNC) --------
-------- It might be safer to delay this Action until you're certain that all Players are loaded in! --------
Custom script: call InitMUU()
You don't have to know how to code, you just copy and paste the single Folder from my map's Trigger Editor over to your map's Trigger Editor.Cool jass Uncle! unfortunately, i have little to no knowledge of manual codings, anyways i've already solve it by using the hex code, i don't plan to touch the UI frames itself because that will take time for me to tackle
ModifyUpkeepUI Init

Events


Time - Elapsed game time is 0.50 seconds

Conditions

Actions


-------- Define the text used here: --------


Set VariableSet MUU_Title = New Upkeep


Set VariableSet MUU_Tooltip = This is the text in the tooltip!