Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions de.peeeq.wurstscript/src/main/resources/common.j
Original file line number Diff line number Diff line change
Expand Up @@ -3771,6 +3771,9 @@ native EnableDragSelect takes boolean state, boolean ui returns noth
native EnablePreSelect takes boolean state, boolean ui returns nothing
native EnableSelect takes boolean state, boolean ui returns nothing
native BlzGetHUDScale takes nothing returns real
native BlzSetHUDScale takes integer percentage returns nothing
native BlzLockHUDScale takes nothing returns nothing
native BlzUnlockHUDScale takes nothing returns nothing

//============================================================================
// Trackable API
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,15 +5,20 @@
public class CoreJassVersionTests extends WurstScriptTest {
@Test
public void bundled301ApiCompilesOnBothBackends() {
test().withStdLib().testLua(true).lines(
test().withStdLib().testLua(true).luaOnly(false).lines(
"package Test",
" @extern native consume(boolean value)",
" function consume(boolean value)",
" if value",
" BJDebugMsg(\"true\")",
" init",
" unit u = null",
" consume(BlzUnitIsAlive(u))",
" consume(UnitIsAliveBJ(u))",
" consume(UnitIsDeadBJ(u))",
" consume(BlzGetHUDScale() > 0.)",
" BlzSetHUDScale(100)",
" BlzLockHUDScale()",
" BlzUnlockHUDScale()",
" consume(BlzGetCameraAllowsHotkeyTargetLock())",
" consume(BlzUnitHasItemEquipped(u, null))");
}
Expand Down
2 changes: 1 addition & 1 deletion de.peeeq.wurstscript/version.txt
Original file line number Diff line number Diff line change
@@ -1 +1 @@
2.0.2
2.0.3
Loading