You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
localdefaultStyling= {
bgColor= {12, 183, 242, 170}, -- LOVE bluefgColor= {255, 255, 255, 255}, -- Foreground colortooltipFont=love.graphics.newFont(10), -- tooltips are smaller than the main fontradius=3, -- radius for the outer shapes of componentsinnerRadius=3, -- For the inner onesshowBorder=false, -- border for componentsborderColor= {12, 183, 242, 255},
borderWidth=2, -- in pixelsfont=love.graphics.newFont(48),
mode3d=false, -- gives that subtle gradient on the given colorglass=false-- for a glass effect (horizon reflection)
}
locallab=gooi.newLabel({
text="hello my name is bob",
x=25,
y=150,
w=100,
h=30,
align="left", -- text alignmenticon="imgs/exit.png",
})
lab:setStyle(defaultStyling)
copied directly from the wiki. I changed the style to be font size 48.
When using
gooi.setStyle(defaultStyling)
it is applied to the label, but using
lab:setStyle(defaultStyling)
it is not applied to label.
EDIT
fix found :
changing gooi/gooi.lua line: 1815
from love.graphics.setFont(gooi.getFont())-- Specific or a common font.
to love.graphics.setFont(gooi.getFont(comp))-- Specific or a common font.
The text was updated successfully, but these errors were encountered:
encountered an issue,
take the below code
copied directly from the wiki. I changed the style to be font size 48.
When using
gooi.setStyle(defaultStyling)
it is applied to the label, but using
lab:setStyle(defaultStyling)
it is not applied to label.
EDIT
fix found :
changing gooi/gooi.lua line: 1815
from
love.graphics.setFont(gooi.getFont())-- Specific or a common font.
to
love.graphics.setFont(gooi.getFont(comp))-- Specific or a common font.
The text was updated successfully, but these errors were encountered: