Jump to content

Recommended Posts

Posted
6 hours ago, Josh said:

Can't you just call Widget::SetFont?

image.thumb.png.379e2530fbc98d2da02af972506dea79.png

 

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. 

 

 

Astrocuco.thumb.png.c76e0fb3de2d6e437e7dca099625e11e.png

Posted
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

 

 

 

Astrocuco.thumb.png.c76e0fb3de2d6e437e7dca099625e11e.png

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.

×
×
  • Create New...