mirror of
https://github.com/IgorTimofeev/MineOS.git
synced 2026-01-09 20:52:40 +01:00
Merge pull request #62 from fgRuslan/master
Более графонистые контуры дока + фиксы в документации
This commit is contained in:
commit
fe95d04b8f
@ -262,6 +262,8 @@ buffer.**getCoordinatesByIndex**( index ): int x, int y
|
||||
|
||||
buffer.**rawSet**( index, background, foreground, symbol )
|
||||
-----------------------------------------------------------
|
||||
| Тип | Аргумент | Описание |
|
||||
| ------ | ------ | ------ |
|
||||
| *int* | index | Индекс экранного буфера |
|
||||
| *int* | background | Цвет фона |
|
||||
| *int* | foreground | Цвет символа |
|
||||
@ -271,6 +273,8 @@ buffer.**rawSet**( index, background, foreground, symbol )
|
||||
|
||||
buffer.**rawGet**( index ): int background, int foreground, char symbol
|
||||
-----------------------------------------------------------
|
||||
| Тип | Аргумент | Описание |
|
||||
| ------ | ------ | ------ |
|
||||
| *int* | index | Индекс экранного буфера |
|
||||
|
||||
Метод, возвращающий соответствующие значения цветов и символа пикселя с указанным индексом.
|
||||
|
||||
@ -511,9 +511,9 @@ local function createOSWindow()
|
||||
local color, currentDockTransparency, currentDockWidth, xPos, yPos = MineOSCore.OSSettings.interfaceColor or colors.interface, colors.dockBaseTransparency, dockContainer.width, dockContainer.x, dockContainer.y + 2
|
||||
|
||||
for i = 1, dockContainer.height do
|
||||
buffer.text(xPos, yPos, color, "▟", currentDockTransparency)
|
||||
buffer.text(xPos, yPos, color, "◢", currentDockTransparency)
|
||||
buffer.square(xPos + 1, yPos, currentDockWidth - 2, 1, color, 0xFFFFFF, " ", currentDockTransparency)
|
||||
buffer.text(xPos + currentDockWidth - 1, yPos, color, "▙", currentDockTransparency)
|
||||
buffer.text(xPos + currentDockWidth - 1, yPos, color, "◣", currentDockTransparency)
|
||||
|
||||
currentDockTransparency, currentDockWidth, xPos, yPos = currentDockTransparency - colors.dockTransparencyAdder, currentDockWidth + 2, xPos - 1, yPos + 1
|
||||
end
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user