Skip to content

Commit

Permalink
Fix incorrect White value in createHUDText
Browse files Browse the repository at this point in the history
  • Loading branch information
DvvCz committed Aug 30, 2023
1 parent a05ef10 commit bd66a01
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 9 deletions.
6 changes: 3 additions & 3 deletions packages/ramattra-core/src/compiler/std.ts
Original file line number Diff line number Diff line change
Expand Up @@ -159,9 +159,9 @@ export const FUNCTIONS: Record<string, { ow: string, args: { type: Type, default
{ type: string, default: "0" },
{ type: native("hudpos"), default: "Left" },
{ type: number, default: "0" },
{ type: native("color"), default: "White" },
{ type: native("color"), default: "White" },
{ type: native("color"), default: "White" },
{ type: native("color"), default: "Color(White)" },
{ type: native("color"), default: "Color(White)" },
{ type: native("color"), default: "Color(White)" },
{ type: native("hudeval"), default: "None" },
{ type: native("visibility"), default: "Default Visibility" },
],
Expand Down
12 changes: 6 additions & 6 deletions packages/ramattra-playground/src/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -8,14 +8,14 @@ const codeParam = urlParams.get("code");
const defaultCode = codeParam ? decodeURIComponent(codeParam) : `event playerDied(victim, attacker, damage, crit, ability, dir) {
let players = [victim, attacker]
players.setInvisible()
players.createHUDText("Header")
let strings = ["foo", "bar", "baz"]
let buffer = ""
let numbers = [1, 2, 3, 4, 5]
for i in 0..5 {
let num = numbers[i]
for i in 0 .. strings.count() {
buffer += strings[i]
}
players.createHUDText(buffer);
}`;

import { Editor, useMonaco } from "@monaco-editor/react";
Expand Down

0 comments on commit bd66a01

Please sign in to comment.