View Single Post
02/18/23, 09:47 AM   #6
sinnereso
AddOn Author - Click to view addons
Join Date: Oct 2022
Posts: 245
Originally Posted by FlatBadger View Post
I just tried the following:


Code:
/script SetNameplateKeyboardFont(string.format("%s|%d", "EsoUI/Common/Fonts/Univers67.otf", "26"),FONT_STYLE_SHADOW)
and it took effect immediately.

Two things,
1) (not the problem but...) I think it's better practice to use named constants rather than their values, as I've done above (i.e. FONT_STYLE_SHADOW rather than 1)
2) Your code snippet implies that it only runs in response the to the Player Activated event - are you calling a similar function after you've set your new font?
no thats basically it... its being called in the function RidinDirty.PlayerActivated(). Thats what Ive been looking to change so that its instant.. when in function RidinDirty.PlayerActivated() it requires some form of screen redraw like opening a door or a reloadui to activate the change. I cant seem to find a way for it to just be done instantly or at least its flying right over my head. I could really use some advice on this and maybe some best practices as im very new.
  Reply With Quote