2025/07/20 Update
Updated PEPS AI. Full compile.
This commit is contained in:
@@ -5,12 +5,9 @@
|
||||
|
||||
Crafting UI for players items.
|
||||
*///////////////////////////////////////////////////////////////////////////////
|
||||
#include "nw_inc_nui"
|
||||
#include "0i_nui"
|
||||
#include "0i_items"
|
||||
#include "nw_inc_gff"
|
||||
|
||||
|
||||
const string CRAFT_JSON = "CRAFT_JSON";
|
||||
const string CRAFT_COOL_DOWN = "CRAFT_COOL_DOWN";
|
||||
const string CRAFT_ITEM_SELECTION = "CRAFT_ITEM_SELECTION";
|
||||
@@ -45,6 +42,7 @@ void main()
|
||||
if(oTarget == OBJECT_INVALID) oTarget = oPC;
|
||||
if(StartingUp(oPC)) return;
|
||||
json jCraft = GetLocalJson(oPC, CRAFT_JSON);
|
||||
if(JsonGetType(jCraft) == JSON_TYPE_NULL) jCraft = JsonObject();
|
||||
// Row 1 (Object Name)****************************************************** 508 / 83
|
||||
json jRow = CreateTextEditBox(JsonArray(), "plc_hold_bind", "txt_item_name", 50, FALSE, 486.0f, 30.0f); // 419
|
||||
json jCol = JsonArrayInsert(JsonArray(), NuiRow(jRow));
|
||||
@@ -128,7 +126,7 @@ void main()
|
||||
jImage = NuiWidth(jImage, 320.0); // 256 + 64
|
||||
jImage = NuiHeight(jImage, 220.0); // 176 + 44
|
||||
jImage = NuiTooltip(jImage, NuiBind("color_pallet_tooltip"));
|
||||
json jIndicator = JsonArrayInsert(JsonArray(), NuiDrawListRect(JsonBool(TRUE), NuiColor(255,255,255), JsonBool(FALSE), JsonFloat(2.0), NuiBind("color_pallet_pointer")));
|
||||
json jIndicator = JsonArrayInsert(JsonArray(), NuiDrawListRect(JsonBool(TRUE), NuiColor(255,0,0), JsonBool(FALSE), JsonFloat(2.0), NuiBind("color_pallet_pointer")));
|
||||
jImage = NuiDrawList(jImage, JsonBool(FALSE), jIndicator);
|
||||
jGroupRow = JsonArrayInsert(JsonArray(), jImage);
|
||||
jGroupCol = JsonArrayInsert(JsonArray(), NuiRow(jGroupRow));
|
||||
@@ -541,7 +539,6 @@ void main()
|
||||
// Lets make sure we clean up any cool down variables.
|
||||
//DeleteLocalInt(oPC, CRAFT_COOL_DOWN);
|
||||
}
|
||||
|
||||
json CreateItemCombo(object oPC, json jRow, string sComboBind)
|
||||
{
|
||||
int nCnt;
|
||||
|
Reference in New Issue
Block a user