Adds LAccess.bufferUsage, fixes wrong property names for displayWidth and displayHeight (#10679)

* Adds LAccess.bufferUsage - sensable property returning number of unprocessed commands in the graphics buffer of a display.
Fixes wrong property keys (lacess.* -> laccess.*) of the recently added displayWidth and displayHeight properties.

* Revert unnecessary bundle updates
This commit is contained in:
Cardillan
2025-04-18 16:05:56 +02:00
committed by GitHub
parent a394084f37
commit c3e2bcf2e7
5 changed files with 9 additions and 4 deletions

View File

@@ -2551,8 +2551,9 @@ laccess.progress = Action progress, 0 to 1.\nReturns production, turret reload o
laccess.speed = Top speed of a unit, in tiles/sec. laccess.speed = Top speed of a unit, in tiles/sec.
laccess.size = Size of a unit/building or the length of a string. laccess.size = Size of a unit/building or the length of a string.
laccess.id = ID of a unit/block/item/liquid.\nThis is the inverse of the lookup operation. laccess.id = ID of a unit/block/item/liquid.\nThis is the inverse of the lookup operation.
lacess.displaywidth = Width of a display block in pixels. laccess.displaywidth = Width of a display block in pixels.
lacess.displayheight = Height of a display block in pixels. laccess.displayheight = Height of a display block in pixels.
laccess.bufferusage = Number of unprocessed commands in the graphics buffer of a display.
lcategory.unknown = Unknown lcategory.unknown = Unknown
lcategory.unknown.description = Uncategorized instructions. lcategory.unknown.description = Uncategorized instructions.

View File

@@ -2507,8 +2507,9 @@ laccess.progress = Průběh akce, 0 do 1.\nVrací průběh výroby, přebití v
laccess.speed = Top speed of a unit, in tiles/sec. laccess.speed = Top speed of a unit, in tiles/sec.
laccess.size = Size of a unit/building or the length of a string. laccess.size = Size of a unit/building or the length of a string.
laccess.id = ID of a unit/block/item/liquid.\nThis is the inverse of the lookup operation. laccess.id = ID of a unit/block/item/liquid.\nThis is the inverse of the lookup operation.
lacess.displaywidth = Width of a display block in pixels. laccess.displaywidth = Šířka displeje v pixelech.
lacess.displayheight = Height of a display block in pixels. laccess.displayheight = Výška displeje v pixelech.
laccess.bufferusage = Počet nezpracovaných příkazů ve vyrovnávací paměti displeje.
lcategory.unknown = Neznámé lcategory.unknown = Neznámé
lcategory.unknown.description = Nezařazené instrukce. lcategory.unknown.description = Nezařazené instrukce.
lcategory.io = Vstup a Výstup lcategory.io = Vstup a Výstup

View File

@@ -175,3 +175,4 @@ sasha0552
6-BennyLi-9 6-BennyLi-9
SeuEarth SeuEarth
The4codeblocks The4codeblocks
cardillan

View File

@@ -40,6 +40,7 @@ public enum LAccess{
cameraHeight, cameraHeight,
displayWidth, displayWidth,
displayHeight, displayHeight,
bufferUsage,
size, size,
solid, solid,
dead, dead,

View File

@@ -110,6 +110,7 @@ public class LogicDisplay extends Block{
public double sense(LAccess sensor){ public double sense(LAccess sensor){
return switch(sensor){ return switch(sensor){
case displayWidth, displayHeight -> displaySize; case displayWidth, displayHeight -> displaySize;
case bufferUsage -> commands.size;
default -> super.sense(sensor); default -> super.sense(sensor);
}; };
} }