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
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
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.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.
lacess.displaywidth = Width of a display block in pixels.
lacess.displayheight = Height of a display block in pixels.
laccess.displaywidth = Width 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.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.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.
lacess.displaywidth = Width of a display block in pixels.
lacess.displayheight = Height of a display block in pixels.
laccess.displaywidth = Šířka displeje v pixelech.
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.description = Nezařazené instrukce.
lcategory.io = Vstup a Výstup

View file

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

View file

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

View file

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