mirror of
https://github.com/OpenDiablo2/OpenDiablo2
synced 2024-11-18 02:16:23 -05:00
6f2c212417
* Configuration cleanup * Cleanup * Continued UI work
32 lines
500 B
Go
32 lines
500 B
Go
package d2gui
|
|
|
|
type SpacerStatic struct {
|
|
widgetBase
|
|
|
|
width int
|
|
height int
|
|
}
|
|
|
|
func createSpacerStatic(width, height int) *SpacerStatic {
|
|
spacer := &SpacerStatic{width: width, height: height}
|
|
spacer.SetVisible(true)
|
|
|
|
return spacer
|
|
}
|
|
|
|
func (s *SpacerStatic) getSize() (int, int) {
|
|
return s.width, s.height
|
|
}
|
|
|
|
type SpacerDynamic struct {
|
|
widgetBase
|
|
}
|
|
|
|
func createSpacerDynamic() *SpacerDynamic {
|
|
spacer := &SpacerDynamic{}
|
|
spacer.SetVisible(true)
|
|
spacer.SetExpanding(true)
|
|
|
|
return spacer
|
|
}
|