Yue Posted September 7, 2021 Posted September 7, 2021 Hi, How can I change the text size in the full screen tab, is that possible? Quote
Josh Posted September 9, 2021 Posted September 9, 2021 Can't you just call Widget::SetFont? 1 Quote My job is to make tools you love, with the features you want, and performance you can't live without.
Yue Posted September 9, 2021 Author Posted September 9, 2021 6 hours ago, Josh said: Can't you just call Widget::SetFont? Ok, I'll give it a try, I was installing the default font with Font:Load. And in the documentation I haven't seen this. Thank you very much. Quote
reepblue Posted September 9, 2021 Posted September 9, 2021 It doesn't take a Font pointer. Make sure your parameters are a string for the path and a number for the font size. 1 1 Quote Cyclone - Ultra Game System - Component Preprocessor - Tex2TGA - Darkness Awaits Template (Leadwerks) If you like my work, consider supporting me on Patreon!
Yue Posted September 9, 2021 Author Posted September 9, 2021 3 hours ago, reepblue said: It doesn't take a Font pointer. Make sure your parameters are a string for the path and a number for the font size. Thank you very much, I greatly appreciate the help, otherwise I would be at a dead end. The question is how the heck did you know that detail, I am left intrigued. Another question, is it possible to change the color of the widget text. function this:MenuOptions() self.context = Context:GetCurrent() self.base = base self.menuStart = menuStart self.pnl = Widget:Panel(self.context:GetWidth()/2-225, self.context:GetHeight()/2-175, 450,350, self.base) self.lblOptions = Widget:Label(self.title, 15,15,130,15, self.pnl) self.lblOptions:SetStyle( LABEL_MIDDLE) self.btnCancel = Widget:Button("CANCEL", self.pnl:GetSize().x/2-130-65/2,self.pnl:GetSize().y-50,150,30, self.pnl) self.btnSave = Widget:Button("SAVE", self.pnl:GetSize().x/2+35,self.pnl:GetSize().y-50,150,30,self.pnl) self:Hide() self.cFullScreen = Widget:Button("Full Screen",15,50,250,26,self.pnl) self.cFullScreen:SetStyle(BUTTON_CHECKBOX) self.cFullScreen:SetFont("Assets/Fonts/space age.ttf",12) end Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.