Jump to content

Add Size text Widget?


Yue
 Share

Recommended Posts

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.

 

image.thumb.png.b3933726418811d8ae9cff6b34f31470.png

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

 

 

 

Link to comment
Share on other sites

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.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

 Share

×
×
  • Create New...