Changeset 488 for binary-improvements/MapRendering
- Timestamp:
- Jun 21, 2024, 2:58:18 PM (5 months ago)
- Location:
- binary-improvements/MapRendering
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
binary-improvements/MapRendering/API/GetPlayerInventory.cs
r455 r488 94 94 _writer.WriteBeginObject (); 95 95 96 AddEquipment (ref _writer, "head", _equ, EquipmentSlots.Headgear, _showIconColor, _showIconName); 97 _writer.WriteValueSeparator (); 98 AddEquipment (ref _writer, "eyes", _equ, EquipmentSlots.Eyewear, _showIconColor, _showIconName); 99 _writer.WriteValueSeparator (); 100 AddEquipment (ref _writer, "face", _equ, EquipmentSlots.Face, _showIconColor, _showIconName); 96 AddEquipment (ref _writer, "head", _equ, EquipmentSlots.Head, _showIconColor, _showIconName); 101 97 _writer.WriteValueSeparator (); 102 98 103 AddEquipment (ref _writer, "armor", _equ, EquipmentSlots.ChestArmor, _showIconColor, _showIconName); 104 _writer.WriteValueSeparator (); 105 AddEquipment (ref _writer, "jacket", _equ, EquipmentSlots.Jacket, _showIconColor, _showIconName); 106 _writer.WriteValueSeparator (); 107 AddEquipment (ref _writer, "shirt", _equ, EquipmentSlots.Shirt, _showIconColor, _showIconName); 99 AddEquipment (ref _writer, "armor", _equ, EquipmentSlots.Chest, _showIconColor, _showIconName); 108 100 _writer.WriteValueSeparator (); 109 101 110 AddEquipment (ref _writer, "legarmor", _equ, EquipmentSlots.LegArmor, _showIconColor, _showIconName);111 _writer.WriteValueSeparator ();112 AddEquipment (ref _writer, "pants", _equ, EquipmentSlots.Legs, _showIconColor, _showIconName);113 _writer.WriteValueSeparator ();114 102 AddEquipment (ref _writer, "boots", _equ, EquipmentSlots.Feet, _showIconColor, _showIconName); 115 103 _writer.WriteValueSeparator (); … … 123 111 _writer.WritePropertyName (_slotname); 124 112 125 int [] slotindices = XUiM_PlayerEquipment.GetSlotIndicesByEquipmentSlot (_slot);113 int slotindex = (int)_slot; 126 114 127 for (int i = 0; i < slotindices.Length; i++) { 128 if (_items? [slotindices [i]] != null) { 129 InvItem item = _items [slotindices [i]]; 130 131 GetJsonForItem (ref _writer, item, _showIconColor, _showIconName); 132 return; 133 } 115 if (_items == null || _items[slotindex] == null) { 116 // Slot not found / empty 117 _writer.WriteNull (); 118 return; 134 119 } 135 136 // Slot not found / empty137 _writer.WriteNull ();120 121 InvItem item = _items [slotindex]; 122 GetJsonForItem (ref _writer, item, _showIconColor, _showIconName); 138 123 } 139 124 -
binary-improvements/MapRendering/ModInfo.xml
r464 r488 5 5 <Description value="Render the game map to image map tiles as it is uncovered" /> 6 6 <Author value="Christian 'Alloc' Illy" /> 7 <Version value="4 7" />7 <Version value="48" /> 8 8 <Website value="https://7dtd.illy.bz" /> 9 9 </xml> -
binary-improvements/MapRendering/WebAndMapRendering.csproj
r470 r488 48 48 <Reference Include="LogLibrary"> 49 49 <HintPath>..\7dtd-binaries\LogLibrary.dll</HintPath> 50 <Private>False</Private>51 </Reference>52 <Reference Include="MapRendering, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null">53 <HintPath>..\7dtd-binaries\MapRendering.dll</HintPath>54 50 <Private>False</Private> 55 51 </Reference> -
binary-improvements/MapRendering/WebTokens_Legacy.cs
r456 r488 5 5 private const string notUsedMessage = "NOT USED - WebTokens are managed through vanilla 7DTD now. Please use the 'webtokens' command instead."; 6 6 7 p rotectedoverride string[] getCommands () {7 public override string[] getCommands () { 8 8 return new[] {"webtokens_legacy"}; 9 9 } 10 10 11 p rotectedoverride string getDescription () {11 public override string getDescription () { 12 12 return notUsedMessage; 13 13 } 14 14 15 p rotectedoverride string getHelp () {15 public override string getHelp () { 16 16 return notUsedMessage; 17 17 }
Note:
See TracChangeset
for help on using the changeset viewer.