- Joined
- Aug 26, 2016
- Messages
- 139
How to replace a texture that is already written in an .fdf file.
I tried two options with a variable and with the name of the .fdf frame, but the texture remains the one that was assigned in the file.
JASS:
set butS[1] = BlzCreateSimpleFrame("Button", gameUIS, 0)
call BlzFrameSetAbsPoint(butS[1], FRAMEPOINT_CENTER, 0.1, 0.5)
call BlzFrameSetTexture(butS[1], "ReplaceableTextures\\CommandButtons\\BTNColt1911.blp" , 0, true)
call BlzFrameSetTexture(BlzGetFrameByName("Button", 0), "ReplaceableTextures\\CommandButtons\\BTNColt1911.blp", 0, true)