Skip to content
This repository has been archived by the owner on Jul 22, 2020. It is now read-only.

Commit

Permalink
Updated SIF autocompletions
Browse files Browse the repository at this point in the history
  • Loading branch information
Southclaws committed Nov 7, 2016
1 parent a3aa5d4 commit d472359
Show file tree
Hide file tree
Showing 24 changed files with 229 additions and 174 deletions.
5 changes: 3 additions & 2 deletions SIF.Button.pwn.sublime-completions
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@

{
"scope": "source.pawn - variable.other.pawn",
"completions":
Expand All @@ -9,14 +10,14 @@
"BTN_STREAMER_AREA_IDENTIFIER",
"BTN_TELEPORT_FREEZE_TIME",
"INVALID_BUTTON_ID",
{"trigger": "CreateButton", "contents": "CreateButton(${1:Float:x}, ${2:Float:y}, ${3:Float:z}, ${4:text[]}, ${5:world = 0}, ${6:interior = 0}, ${7:Float:areasize = 1.0}, ${8:label = 0}, ${9:labeltext[] = \"\"}, ${10:labelcolour = 0xFFFF00FF}, ${11:Float:streamdist = BTN_DEFAULT_STREAMDIST})"},
{"trigger": "CreateButton", "contents": "CreateButton(${1:Float:x}, ${2:Float:y}, ${3:Float:z}, ${4:text[]}, ${5:world = 0}, ${6:interior = 0}, ${7:Float:areasize = 1.0}, ${8:label = 0}, ${9:labeltext[] = \"\"}, ${10:labelcolour = 0xFFFF00FF}, ${11:Float:streamdist = BTN_DEFAULT_STREAMDIST}, ${12:testlos = true})"},
{"trigger": "DestroyButton", "contents": "DestroyButton(${1:buttonid})"},
{"trigger": "LinkTP", "contents": "LinkTP(${1:buttonid1}, ${2:buttonid2})"},
{"trigger": "UnLinkTP", "contents": "UnLinkTP(${1:buttonid1}, ${2:buttonid2})"},
{"trigger": "IsValidButton", "contents": "IsValidButton(${1:buttonid})"},
{"trigger": "GetButtonArea", "contents": "GetButtonArea(${1:buttonid})"},
{"trigger": "SetButtonArea", "contents": "SetButtonArea(${1:buttonid}, ${2:areaid})"},
{"trigger": "SetButtonLabel", "contents": "SetButtonLabel(${1:buttonid}, ${2:text[]}, ${3:colour = 0xFFFF00FF}, ${4:Float:range = BTN_DEFAULT_STREAMDIST})"},
{"trigger": "SetButtonLabel", "contents": "SetButtonLabel(${1:buttonid}, ${2:text[]}, ${3:colour = 0xFFFF00FF}, ${4:Float:range = BTN_DEFAULT_STREAMDIST}, ${5:testlos = true})"},
{"trigger": "DestroyButtonLabel", "contents": "DestroyButtonLabel(${1:buttonid})"},
{"trigger": "GetButtonPos", "contents": "GetButtonPos(${1:buttonid}, ${2:Float:x}, ${3:Float:y}, ${4:Float:z})"},
{"trigger": "SetButtonPos", "contents": "SetButtonPos(${1:buttonid}, ${2:Float:x}, ${3:Float:y}, ${4:Float:z})"},
Expand Down
1 change: 1 addition & 0 deletions SIF.Container.pwn.sublime-completions
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@

{
"scope": "source.pawn - variable.other.pawn",
"completions":
Expand Down
18 changes: 0 additions & 18 deletions SIF.ContainerDialog.inc.sublime-completions

This file was deleted.

18 changes: 18 additions & 0 deletions SIF.ContainerDialog.pwn.sublime-completions
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@

{
"scope": "source.pawn - variable.other.pawn",
"completions":
[
{"trigger": "DisplayContainerInventory", "contents": "DisplayContainerInventory(${1:playerid}, ${2:containerid})"},
{"trigger": "ClosePlayerContainer", "contents": "ClosePlayerContainer(${1:playerid}, ${2:call = false})"},
{"trigger": "GetPlayerCurrentContainer", "contents": "GetPlayerCurrentContainer(${1:playerid})"},
{"trigger": "GetPlayerContainerSlot", "contents": "GetPlayerContainerSlot(${1:playerid})"},
{"trigger": "AddContainerOption", "contents": "AddContainerOption(${1:playerid}, ${2:option[]})"},
{"trigger": "OnPlayerOpenContainer", "contents": "OnPlayerOpenContainer(${1:playerid}, ${2:containerid})"},
{"trigger": "OnPlayerCloseContainer", "contents": "OnPlayerCloseContainer(${1:playerid}, ${2:containerid})"},
{"trigger": "OnPlayerViewContainerOpt", "contents": "OnPlayerViewContainerOpt(${1:playerid}, ${2:containerid})"},
{"trigger": "OnPlayerSelectContainerOpt", "contents": "OnPlayerSelectContainerOpt(${1:playerid}, ${2:containerid}, ${3:option})"},
{"trigger": "OnMoveItemToContainer", "contents": "OnMoveItemToContainer(${1:playerid}, ${2:itemid}, ${3:containerid})"},
{"trigger": "OnMoveItemToInventory", "contents": "OnMoveItemToInventory(${1:playerid}, ${2:itemid}, ${3:containerid})"}
]
}
14 changes: 2 additions & 12 deletions SIF.Core.pwn.sublime-completions
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@

{
"scope": "source.pawn - variable.other.pawn",
"completions":
Expand All @@ -14,17 +15,6 @@
{"trigger": "sif_intdiffabs", "contents": "sif_intdiffabs(${1:tick1}, ${2:tick2})"},
{"trigger": "sif_GetTickCountDiff", "contents": "sif_GetTickCountDiff(${1:a}, ${2:b})"},
{"trigger": "OnPlayerEnterPlayerArea", "contents": "OnPlayerEnterPlayerArea(${1:playerid}, ${2:targetid})"},
{"trigger": "OnPlayerLeavePlayerArea", "contents": "OnPlayerLeavePlayerArea(${1:playerid}, ${2:targetid})"},
{"trigger": "IsPlayerInPlayerArea", "contents": "IsPlayerInPlayerArea(${1:playerid}, ${2:targetid})"},
{"trigger": "ShowActionText", "contents": "ShowActionText(${1:playerid}, ${2:message[]}, ${3:time=0}, ${4:width=200})"},
{"trigger": "HideActionText", "contents": "HideActionText(${1:playerid})"},
{"trigger": "IsPlayerViewingActionText", "contents": "IsPlayerViewingActionText(${1:playerid})"},
{"trigger": "sif_absoluteangle", "contents": "sif_absoluteangle(${1:Float:angle})"},
{"trigger": "sif_GetAngleToPoint", "contents": "sif_GetAngleToPoint(${1:Float:fPointX}, ${2:Float:fPointY}, ${3:Float:fDestX}, ${4:Float:fDestY})"},
{"trigger": "sif_Distance", "contents": "sif_Distance(${1:Float:x1}, ${2:Float:y1}, ${3:Float:z1}, ${4:Float:x2}, ${5:Float:y2}, ${6:Float:z2})"},
{"trigger": "sif_IsIdleAnim", "contents": "sif_IsIdleAnim(${1:animidx})"},
{"trigger": "sif_abs", "contents": "sif_abs(${1:int})"},
{"trigger": "sif_intdiffabs", "contents": "sif_intdiffabs(${1:tick1}, ${2:tick2})"},
{"trigger": "sif_GetTickCountDiff", "contents": "sif_GetTickCountDiff(${1:a}, ${2:b})"}
{"trigger": "OnPlayerLeavePlayerArea", "contents": "OnPlayerLeavePlayerArea(${1:playerid}, ${2:targetid})"}
]
}
9 changes: 0 additions & 9 deletions SIF.Craft.inc.sublime-completions

This file was deleted.

26 changes: 26 additions & 0 deletions SIF.Craft.pwn.sublime-completions
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@

{
"scope": "source.pawn - variable.other.pawn",
"completions":
[
"CFT_MAX_CRAFT_SET",
"CFT_MAX_CRAFT_SET_ITEMS",
{"trigger": "DefineItemCraftSet", "contents": "DefineItemCraftSet(${1:ItemType:result}, ${2:...})"},
{"trigger": "GetCraftSetUniqueID", "contents": "GetCraftSetUniqueID(${1:craftset}, ${2:id[]}, ${3:maxlength = sizeof(id})"},
{"trigger": "IsValidCraftSet", "contents": "IsValidCraftSet(${1:craftset})"},
{"trigger": "GetCraftSetIngredients", "contents": "GetCraftSetIngredients(${1:craftset}, ${2:output[CFT_MAX_CRAFT_SET_ITEMS][e_craft_item_data]})"},
{"trigger": "GetCraftSetItemType", "contents": "GetCraftSetItemType(${1:craftset}, ${2:index})"},
{"trigger": "GetCraftSetItemKeep", "contents": "GetCraftSetItemKeep(${1:craftset}, ${2:index})"},
{"trigger": "GetCraftSetItemCount", "contents": "GetCraftSetItemCount(${1:craftset})"},
{"trigger": "GetCraftSetResult", "contents": "GetCraftSetResult(${1:craftset})"},
{"trigger": "GetCraftSetTotal", "contents": "GetCraftSetTotal()"},
{"trigger": "GetPlayerSelectedCraftItems", "contents": "GetPlayerSelectedCraftItems(${1:playerid}, ${2:output[CFT_MAX_CRAFT_SET_ITEMS][e_selected_item_data]})"},
{"trigger": "GetPlayerSelectedCraftItemType", "contents": "GetPlayerSelectedCraftItemType(${1:playerid}, ${2:index})"},
{"trigger": "GetPlayerSelectedCraftItemID", "contents": "GetPlayerSelectedCraftItemID(${1:playerid}, ${2:index})"},
{"trigger": "GetPlayerSelectedCraftItemCount", "contents": "GetPlayerSelectedCraftItemCount(${1:playerid})"},
{"trigger": "GetPlayerCraftEnvironment", "contents": "GetPlayerCraftEnvironment(${1:playerid})"},
{"trigger": "ItemTypeResultForCraftingSet", "contents": "ItemTypeResultForCraftingSet(${1:ItemType:itemtype})"},
{"trigger": "OnPlayerCraft", "contents": "OnPlayerCraft(${1:playerid}, ${2:craftset})"},
{"trigger": "OnPlayerCrafted", "contents": "OnPlayerCrafted(${1:playerid}, ${2:craftset}, ${3:result})"}
]
}
16 changes: 5 additions & 11 deletions SIF.Debug.pwn.sublime-completions
Original file line number Diff line number Diff line change
@@ -1,25 +1,19 @@

{
"scope": "source.pawn - variable.other.pawn",
"completions":
[
"MAX_DEBUG_HANDLER",
"MAX_DEBUG_HANDLER_NAME",
"SIF_DEBUG_LEVEL_NONE",
"SIF_DEBUG_LEVEL_CALLBACKS",
"SIF_DEBUG_LEVEL_CALLBACKS_DEEP",
"SIF_DEBUG_LEVEL_CORE",
"SIF_DEBUG_LEVEL_CORE_DEEP",
"SIF_DEBUG_LEVEL_INTERNAL",
"SIF_DEBUG_LEVEL_INTERNAL_DEEP",
"SIF_DEBUG_LEVEL_INTERFACE",
"SIF_DEBUG_LEVEL_INTERFACE_DEEP",
"SIF_DEBUG_LEVEL_LOOPS",
{"trigger": "sif_debug_register_handler", "contents": "sif_debug_register_handler(${1:name[]}, ${2:initstate = 0})"},
{"trigger": "sif_debug_level", "contents": "sif_debug_level(${1:handler}, ${2:level})"},
{"trigger": "sif_debug_plevel", "contents": "sif_debug_plevel(${1:playerid}, ${2:handler}, ${3:level})"},
{"trigger": "sif_debug_print", "contents": "sif_debug_print(${1:handler}, ${2:level}, ${3:playerid}, ${4:msg[]})"},
{"trigger": "sif_debug_printf", "contents": "sif_debug_printf(${1:handler}, ${2:level}, ${3:playerid}, ${4:string[]}, ${5:va_args<>})"},
{"trigger": "sif_debug_handler_search", "contents": "sif_debug_handler_search(${1:name[]})"},
{"trigger": "sif_debug_get_handler_name", "contents": "sif_debug_get_handler_name(${1:handler}, ${2:output[]})"}
{"trigger": "sif_debug_get_handler_name", "contents": "sif_debug_get_handler_name(${1:handler}, ${2:output[]})"},
{"trigger": "SIF_IS_VALID_HANDLER(%0)", "contents": "SIF_IS_VALID_HANDLER(${1:0})"},
{"trigger": "sif_dp:%0:%1(%2)<%3>", "contents": "sif_dp:${1:0}:${2:1}(${3:2})<${4:3}>"},
{"trigger": "sif_d:%0:%1(%2)", "contents": "sif_d:${1:0}:${2:1}(${3:2})"}
]
}
25 changes: 0 additions & 25 deletions SIF.DebugLabels.inc.sublime-completions

This file was deleted.

25 changes: 25 additions & 0 deletions SIF.DebugLabels.pwn.sublime-completions
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@

{
"scope": "source.pawn - variable.other.pawn",
"completions":
[
"MAX_DEBUG_LABELS",
"MAX_DEBUG_LABEL_TYPES",
"MAX_DEBUG_LABEL_TYPE_NAME",
"MAX_DEBUG_LABEL_STRING_LEN",
"INVALID_DEBUG_LABEL_TYPE",
"INVALID_DEBUG_LABEL_ID",
{"trigger": "DefineDebugLabelType", "contents": "DefineDebugLabelType(${1:name[]}, ${2:colour = 0xFFFFFFFF})"},
{"trigger": "CreateDebugLabel", "contents": "CreateDebugLabel(${1:type}, ${2:entityid}, ${3:Float:x}, ${4:Float:y}, ${5:Float:z}, ${6:string[] = \"\"}, ${7:worldid = -1}, ${8:interiorid = -1})"},
{"trigger": "DestroyDebugLabel", "contents": "DestroyDebugLabel(${1:labelid})"},
{"trigger": "ShowDebugLabelsForPlayer", "contents": "ShowDebugLabelsForPlayer(${1:playerid}, ${2:type})"},
{"trigger": "ShowAllDebugLabelsForPlayer", "contents": "ShowAllDebugLabelsForPlayer(${1:playerid})"},
{"trigger": "HideDebugLabelsForPlayer", "contents": "HideDebugLabelsForPlayer(${1:playerid}, ${2:type})"},
{"trigger": "HideAllDebugLabelsForPlayer", "contents": "HideAllDebugLabelsForPlayer(${1:playerid})"},
{"trigger": "UpdateDebugLabelString", "contents": "UpdateDebugLabelString(${1:labelid}, ${2:string[]})"},
{"trigger": "IsValidDebugLabel", "contents": "IsValidDebugLabel(${1:labelid})"},
{"trigger": "SetDebugLabelPos", "contents": "SetDebugLabelPos(${1:labelid}, ${2:Float:x}, ${3:Float:y}, ${4:Float:z})"},
{"trigger": "IsPlayerToggledDebugLabels", "contents": "IsPlayerToggledDebugLabels(${1:playerid}, ${2:type})"},
{"trigger": "IsPlayerToggledAllDebugLabels", "contents": "IsPlayerToggledAllDebugLabels(${1:playerid})"}
]
}
15 changes: 0 additions & 15 deletions SIF.Dispenser.inc.sublime-completions

This file was deleted.

1 change: 1 addition & 0 deletions SIF.Door.pwn.sublime-completions
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@

{
"scope": "source.pawn - variable.other.pawn",
"completions":
Expand Down
10 changes: 10 additions & 0 deletions SIF.GEID.pwn.sublime-completions
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@

{
"scope": "source.pawn - variable.other.pawn",
"completions":
[
"GEID_LEN",
{"trigger": "mkgeid", "contents": "mkgeid(${1:id}, ${2:result[]})"},
{"trigger": "b64_encode", "contents": "b64_encode(${1:data[]}, ${2:data_len}, ${3:result[]}, ${4:result_len})"}
]
}
1 change: 1 addition & 0 deletions SIF.Inventory.pwn.sublime-completions
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@

{
"scope": "source.pawn - variable.other.pawn",
"completions":
Expand Down
25 changes: 0 additions & 25 deletions SIF.InventoryDialog.inc.sublime-completions

This file was deleted.

24 changes: 24 additions & 0 deletions SIF.InventoryDialog.pwn.sublime-completions
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@

{
"scope": "source.pawn - variable.other.pawn",
"completions":
[
{"trigger": "DisplayPlayerInventory", "contents": "DisplayPlayerInventory(${1:playerid})"},
{"trigger": "ClosePlayerInventory", "contents": "ClosePlayerInventory(${1:playerid}, ${2:call = false})"},
{"trigger": "GetPlayerSelectedInventorySlot", "contents": "GetPlayerSelectedInventorySlot(${1:playerid})"},
{"trigger": "AddInventoryListItem", "contents": "AddInventoryListItem(${1:playerid}, ${2:itemname[]})"},
{"trigger": "AddInventoryOption", "contents": "AddInventoryOption(${1:playerid}, ${2:option[]})"},
{"trigger": "GetInventoryListItems", "contents": "GetInventoryListItems(${1:playerid})"},
{"trigger": "GetInventoryOptions", "contents": "GetInventoryOptions(${1:playerid})"},
{"trigger": "GetInventoryListItemCount", "contents": "GetInventoryListItemCount(${1:playerid})"},
{"trigger": "GetInventoryOptionCount", "contents": "GetInventoryOptionCount(${1:playerid})"},
{"trigger": "IsPlayerViewingInventory", "contents": "IsPlayerViewingInventory(${1:playerid})"},
{"trigger": "OnPlayerOpenInventory", "contents": "OnPlayerOpenInventory(${1:playerid})"},
{"trigger": "OnPlayerCloseInventory", "contents": "OnPlayerCloseInventory(${1:playerid})"},
{"trigger": "OnPlayerSelectExtraItem", "contents": "OnPlayerSelectExtraItem(${1:playerid}, ${2:item})"},
{"trigger": "OnPlayerRemoveFromInventory", "contents": "OnPlayerRemoveFromInventory(${1:playerid}, ${2:slotid})"},
{"trigger": "OnPlayerRemovedFromInventory", "contents": "OnPlayerRemovedFromInventory(${1:playerid}, ${2:slotid})"},
{"trigger": "OnPlayerViewInventoryOpt", "contents": "OnPlayerViewInventoryOpt(${1:playerid})"},
{"trigger": "OnPlayerSelectInventoryOpt", "contents": "OnPlayerSelectInventoryOpt(${1:playerid}, ${2:option})"}
]
}
9 changes: 9 additions & 0 deletions SIF.InventoryKeys.pwn.sublime-completions
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@

{
"scope": "source.pawn - variable.other.pawn",
"completions":
[
{"trigger": "OnPlayerAddToInventory", "contents": "OnPlayerAddToInventory(${1:playerid}, ${2:itemid})"},
{"trigger": "OnPlayerAddedToInventory", "contents": "OnPlayerAddedToInventory(${1:playerid}, ${2:itemid})"}
]
}
Loading

0 comments on commit d472359

Please sign in to comment.