diff --git a/src/HUDAnimations/HUDAnimationsSerializer.cs b/src/HUDAnimations/HUDAnimationsSerializer.cs index 01d17bc..e7a25f4 100644 --- a/src/HUDAnimations/HUDAnimationsSerializer.cs +++ b/src/HUDAnimations/HUDAnimationsSerializer.cs @@ -211,35 +211,36 @@ bool ReadBool() Duration = ReadNumber(), Conditional = ReadConditional() }, - "runevent" => new RunEvent + "firecommand" => new FireCommand { - Event = ReadString(), Delay = ReadNumber(), + Command = ReadString(), Conditional = ReadConditional() }, - "stopevent" => new StopEvent + "playsound" => new PlaySound { - Event = ReadString(), Delay = ReadNumber(), + Sound = ReadString(), Conditional = ReadConditional() }, - "setvisible" => new SetVisible + "runevent" => new RunEvent { - Element = ReadString(), - Visible = ReadBool(), + Event = ReadString(), Delay = ReadNumber(), Conditional = ReadConditional() }, - "firecommand" => new FireCommand + "runeventchild" => new RunEventChild { + Element = ReadString(), + Event = ReadString(), Delay = ReadNumber(), - Command = ReadString(), Conditional = ReadConditional() }, - "runeventchild" => new RunEventChild + "setfont" => new SetFont { Element = ReadString(), - Event = ReadString(), + Property = ReadString(), + Font = ReadString(), Delay = ReadNumber(), Conditional = ReadConditional() }, @@ -250,48 +251,47 @@ bool ReadBool() Delay = ReadNumber(), Conditional = ReadConditional() }, - "playsound" => new PlaySound + "setstring" => new SetString { + Element = ReadString(), + Property = ReadString(), + String = ReadString(), Delay = ReadNumber(), - Sound = ReadString(), - Conditional = ReadConditional() + Conditional = ReadConditional(), }, - "stoppanelanimations" => new StopPanelAnimations + "settexture" => new SetTexture { Element = ReadString(), + Property = ReadString(), + Texture = ReadString(), Delay = ReadNumber(), - Conditional = ReadConditional() + Conditional = ReadConditional(), }, - "stopanimation" => new StopAnimation + "setvisible" => new SetVisible { Element = ReadString(), - Property = ReadString(), + Visible = ReadBool(), Delay = ReadNumber(), Conditional = ReadConditional() }, - "setfont" => new SetFont + "stopanimation" => new StopAnimation { Element = ReadString(), Property = ReadString(), - Font = ReadString(), Delay = ReadNumber(), Conditional = ReadConditional() }, - "settexture" => new SetTexture + "stopevent" => new StopEvent { - Element = ReadString(), - Property = ReadString(), - Texture = ReadString(), + Event = ReadString(), Delay = ReadNumber(), - Conditional = ReadConditional(), + Conditional = ReadConditional() }, - "setstring" => new SetString + "stoppanelanimations" => new StopPanelAnimations { Element = ReadString(), - Property = ReadString(), - String = ReadString(), Delay = ReadNumber(), - Conditional = ReadConditional(), + Conditional = ReadConditional() }, string str => throw new VDFSyntaxException( new VDFToken { Type = VDFTokenType.String, Value = str },