tdauth / wowr

Warcraft III: Reforged funmap World of Warcraft Reforged.
https://wowreforged.org
8 stars 0 forks source link

Custom hero and player UI for info, picks and repicks #748

Open tdauth opened 2 years ago

tdauth commented 2 years ago

Shows all 3 heroes with model and stats including player stats. Can be used to view hostile heroes as well or from allied AI. Shows the level of hero skills (we have stored everything).

Player | Hero 1 | Hero 2 | Hero 3 | Settings | model 1 | model 2 | model 3 | | stats 1 | stats 2 | stats 3 |

Ideally show everything at the same page.

tdauth commented 1 year ago

Use the code to preview the models:

local model =  BlzCreateFrameByType("SPRITE", "SpriteName", button, "", 0)
    BlzFrameSetAllPoints(model, button)
    -- apply the model
    BlzFrameSetModel(model, "UI\\Feedback\\Autocast\\UI-ModalButtonOn.mdl", 0)
    -- Models don't care about Frame Size, to resize them one needs to scale them. The default CommandButton has a Size of 0.039. 
    BlzFrameSetScale(model, BlzFrameGetWidth(button)/0.039)