MCPcopy Create free account
hub / github.com/SolarLune/masterplan / NewGUIImage

Function NewGUIImage

gui.go:3295–3304  ·  view source on GitHub ↗
(rect, srcRect *sdl.FRect, texture *sdl.Texture, worldSpace bool)

Source from the content-addressed store, hash-verified

3293}
3294
3295func NewGUIImage(rect, srcRect *sdl.FRect, texture *sdl.Texture, worldSpace bool) *GUIImage {
3296 icon := &GUIImage{Rect: rect, SrcRect: srcRect, Texture: texture, WorldSpace: worldSpace, TintByFontColor: true, Visible: true}
3297 if icon.Rect == nil {
3298 icon.Rect = &sdl.FRect{
3299 W: float32(srcRect.W),
3300 H: float32(srcRect.H),
3301 }
3302 }
3303 return icon
3304}
3305
3306func (image *GUIImage) Update() {}
3307

Callers 8

NewNoteContentsFunction · 0.85
NewSoundContentsFunction · 0.85
NewTimerContentsFunction · 0.85
NewMapContentsFunction · 0.85
NewSubPageContentsFunction · 0.85
NewLinkContentsFunction · 0.85
RowsMethod · 0.85
ConstructMenusFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected