HOW TO SET TEXT, SET TEXTURE (SCRIPT)

Introduction: The Mini World Game has a lot of games about parkour, pvp, pve, etc. But it can make with script and trigger. So today, I will tutorial about set text and set texture

1. How to get elements?

2. How to get UI ID (PC) Step 1: Choose “Script”

Step 2: Create a new script

Step 3: Choose “ID Library” to receive UI ID, cho picture to receive picute id

3. Set texture (script)

target: code: setText, element, UI. This is set texture form:

local function MWC (event)
	   code = Customui:setTexture(event.eventobjid, element, url) --- url = your content
if code == ErrorCode.OK then
	Chat:sendSystemMsg("Success")
else
	Chat:sendSystemMsg("Failed")
end
end
ScriptSupportEvent:registerEvent([=[UI.Show]=], MWC) 

Explain:

Practice

for example I have an element a, an url b and this is my script (please change a and b to fit your map)

local function MWC (event)
	  code =Customui:setTexture(event.eventobjid, [[7333500111866553961]],[[7333500111866553961_1]], [[10010]]]) --- url = your content
if code == ErrorCode.OK then
	Chat:sendSystemMsg("Success")
else
	Chat:sendSystemMsg("Failed")
end
end
ScriptSupportEvent:registerEvent([=[UI.Show]=], MWC) 

4. Set Text

Target: Code: - Set Text, an element, an UI, strings This is set texture form:

local function MWC (event)
	   code = Customui:setText(event.eventobjid, element, text) --- url = your content
if code == ErrorCode.OK then
	Chat:sendSystemMsg("Success")
else
	Chat:sendSystemMsg("Failed")
end
end
ScriptSupportEvent:registerEvent([=[UI.Show]=], MWC) 

Explain:

Practice

You can send your homework to my email: dutiful1234&gmail.com I can fix your error❤️