mirror of
https://github.com/ZDoom/qzdoom.git
synced 2024-11-24 21:11:39 +00:00
- this was missing.
This commit is contained in:
parent
9bd75bcac5
commit
3744c2eee7
1 changed files with 79 additions and 0 deletions
79
wadsrc/static/zscript/statusbar/statusbarwidget.txt
Normal file
79
wadsrc/static/zscript/statusbar/statusbarwidget.txt
Normal file
|
@ -0,0 +1,79 @@
|
|||
|
||||
class StatusbarWidget ui
|
||||
{
|
||||
StatusbarWidget Next;
|
||||
StatusbarWidget Prev;
|
||||
StatusbarWidget Owner;
|
||||
|
||||
native vararg StatusbarWidget AppendWidget(class<StatusbarWidget> cls, ...);
|
||||
native vararg StatusbarWidget BeginCondition(class<StatusbarCondition> cls, ...);
|
||||
native StatusbarWidget EndCondition();
|
||||
native void Finish();
|
||||
}
|
||||
|
||||
class StatusbarCondition : StatusbarWidget
|
||||
{
|
||||
StatusbarWidget Children;
|
||||
}
|
||||
|
||||
class WidgetStatusBar : BaseStatusBar
|
||||
{
|
||||
private StatusbarWidget Head;
|
||||
|
||||
StatusbarWidget Begin()
|
||||
{
|
||||
Head = new("StatusbarWidget");
|
||||
Head.Owner = Head;
|
||||
return Head;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
/* for testing the above. This block compiles.
|
||||
class TestWidgets : WidgetStatusBar
|
||||
{
|
||||
override void Init()
|
||||
{
|
||||
Begin()
|
||||
.AppendWidget("StatusbarWidget")
|
||||
.AppendWidget("StatusbarWidget")
|
||||
.AppendWidget("StatusbarWidget")
|
||||
.AppendWidget("StatusbarWidget")
|
||||
.AppendWidget("StatusbarWidget")
|
||||
.BeginCondition("StatusbarCondition")
|
||||
.AppendWidget("StatusbarWidget")
|
||||
.AppendWidget("StatusbarWidget")
|
||||
.AppendWidget("StatusbarWidget")
|
||||
.AppendWidget("StatusbarWidget")
|
||||
.EndCondition()
|
||||
.AppendWidget("StatusbarWidget")
|
||||
.AppendWidget("StatusbarWidget")
|
||||
.AppendWidget("StatusbarWidget")
|
||||
.BeginCondition("StatusbarCondition")
|
||||
.AppendWidget("StatusbarWidget")
|
||||
.AppendWidget("StatusbarWidget")
|
||||
.BeginCondition("StatusbarCondition")
|
||||
.AppendWidget("StatusbarWidget")
|
||||
.AppendWidget("StatusbarWidget")
|
||||
.AppendWidget("StatusbarWidget")
|
||||
.AppendWidget("StatusbarWidget")
|
||||
.EndCondition()
|
||||
.AppendWidget("StatusbarWidget")
|
||||
.AppendWidget("StatusbarWidget")
|
||||
.EndCondition()
|
||||
.AppendWidget("StatusbarWidget")
|
||||
.AppendWidget("StatusbarWidget")
|
||||
.AppendWidget("StatusbarWidget")
|
||||
.AppendWidget("StatusbarWidget")
|
||||
.AppendWidget("StatusbarWidget")
|
||||
.BeginCondition("StatusbarCondition")
|
||||
.AppendWidget("StatusbarWidget")
|
||||
.AppendWidget("StatusbarWidget")
|
||||
.AppendWidget("StatusbarWidget")
|
||||
.AppendWidget("StatusbarWidget")
|
||||
.EndCondition()
|
||||
.AppendWidget("StatusbarWidget")
|
||||
.Finish();
|
||||
}
|
||||
}
|
||||
*/
|
Loading…
Reference in a new issue