Changes
Jump to navigation
Jump to search
← Older edit
Newer edit →
GBX
(view source)
Revision as of 11:48, 17 April 2022
158 bytes added
,
11:48, 17 April 2022
→CGameCtnCollector (03 01A 000)
:
WebP format for Item and Block icons
Line 938:
Line 938:
uint32 IsInternal : 1;
uint32 IsInternal : 1;
uint32 IsAdvanced : 1;
uint32 IsAdvanced : 1;
−
uint32 IconDesc : 5; // 0 = Unknown, 1 = NoIcon, 2 =
BGRA_64x64
, 3 =
BGRA_128x128
+
uint32 IconDesc : 5; // 0 = Unknown, 1 = NoIcon, 2 =
64x64
, 3 =
128x128
uint32 __unused__ : 24;
uint32 __unused__ : 24;
};
};
Line 950:
Line 950:
uint16 iconWidth
uint16 iconWidth
uint16 iconHeight
uint16 iconHeight
−
byte iconData[4*iconWidth*iconHeight]
// one RGBA uint32 per pixel
+
if (int16)iconWidth >= 0 && (int16)iconHeight >= 0:
+
byte iconData[4*iconWidth*iconHeight] // one RGBA uint32 per pixel
+
else:
+
uint16 version
+
if version >= 1:
+
uint32 size
+
byte iconData[size] // WebP image
'''0301A006''' (header)
'''0301A006''' (header)
Electron
Check users
139
edits
Navigation menu
Personal tools
Log in
Request account
Namespaces
Page
Discussion
Variants
Views
Read
View source
View history
More
Search
Navigation
Main page
Recent changes
Random page
Help about MediaWiki
Tools
Special pages
Printable version