mirror of
https://github.com/beefytech/Beef.git
synced 2025-06-10 12:32:20 +02:00
Console fixes
This commit is contained in:
parent
ac718dde19
commit
9209511cd7
3 changed files with 10 additions and 1 deletions
5
IDE/dist/IDE_CreateStable.bat
vendored
5
IDE/dist/IDE_CreateStable.bat
vendored
|
@ -52,6 +52,10 @@ IF %ERRORLEVEL% NEQ 0 GOTO FAILED
|
||||||
BeefBuild_boot.exe -proddir=..\ -config=Release -platform=Win64
|
BeefBuild_boot.exe -proddir=..\ -config=Release -platform=Win64
|
||||||
IF %ERRORLEVEL% NEQ 0 GOTO FAILED
|
IF %ERRORLEVEL% NEQ 0 GOTO FAILED
|
||||||
|
|
||||||
|
@ECHO ---- Building BeefCon ----
|
||||||
|
BeefBuild_d.exe -proddir=..\..\BeefTools\BeefCon -config=Release
|
||||||
|
IF %ERRORLEVEL% NEQ 0 GOTO FAILED
|
||||||
|
|
||||||
echo on
|
echo on
|
||||||
|
|
||||||
@ECHO ---- Copying files ----
|
@ECHO ---- Copying files ----
|
||||||
|
@ -82,6 +86,7 @@ IF %ERRORLEVEL% NEQ 0 GOTO FAILED
|
||||||
copy Beef*Dbg*.* host
|
copy Beef*Dbg*.* host
|
||||||
IF %ERRORLEVEL% NEQ 0 GOTO FAILED
|
IF %ERRORLEVEL% NEQ 0 GOTO FAILED
|
||||||
copy userdict.txt host
|
copy userdict.txt host
|
||||||
|
copy BeefCon.exe host
|
||||||
@REM copy lib*.dll host
|
@REM copy lib*.dll host
|
||||||
copy Beefy2D.dll host
|
copy Beefy2D.dll host
|
||||||
copy BeefDbgVis.toml host
|
copy BeefDbgVis.toml host
|
||||||
|
|
|
@ -173,7 +173,7 @@ class ConsolePanel : Panel
|
||||||
{
|
{
|
||||||
var cellInfo = mConsolePanel.mConsoleProvider.GetCell(i);
|
var cellInfo = mConsolePanel.mConsoleProvider.GetCell(i);
|
||||||
|
|
||||||
if ((i % numVisibleCols == 0) && (i != selStart))
|
if ((numVisibleCols > 0) && (i % numVisibleCols == 0) && (i != selStart))
|
||||||
{
|
{
|
||||||
// Start of new line
|
// Start of new line
|
||||||
while ((str.Length > 0) && (str[str.Length - 1] == ' '))
|
while ((str.Length > 0) && (str[str.Length - 1] == ' '))
|
||||||
|
@ -275,6 +275,8 @@ class ConsolePanel : Panel
|
||||||
|
|
||||||
public static Position FromIndex(int index, int width)
|
public static Position FromIndex(int index, int width)
|
||||||
{
|
{
|
||||||
|
if (width == 0)
|
||||||
|
return .((.)index, 0);
|
||||||
return .((.)(index % width), (.)(index / width));
|
return .((.)(index % width), (.)(index / width));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -1008,6 +1008,8 @@ class BeefConConsoleProvider : ConsoleProvider
|
||||||
|
|
||||||
public override Cell GetCell(int col, int row)
|
public override Cell GetCell(int col, int row)
|
||||||
{
|
{
|
||||||
|
if (mCells == null)
|
||||||
|
return default;
|
||||||
return mCells[row * mWidth + col];
|
return mCells[row * mWidth + col];
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue