This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System; | |
using System.Collections.Generic; | |
using System.Buffers; | |
using System.Numerics; | |
using System.Reflection; | |
using System.IO; | |
using System.Runtime.CompilerServices; | |
using ImGuiNET; | |
using Raylib_cs; | |
using System.Runtime.InteropServices; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package render; | |
import kha.Key; | |
import kha.input.Keyboard; | |
import kha.Font; | |
import kha.Color; | |
import kha.input.Mouse; | |
import kha.graphics2.Graphics; | |
class TextField |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
private function setBitmapState(state:String) | |
{ | |
if (state == null) | |
return; | |
#if !sys | |
if (Assets.exists(state)) | |
#else | |
if (FileSystem.exists(state)) | |
#end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
private function redraw() | |
{ | |
.... | |
if (baseImgSrc != null) | |
{ | |
_bmp.bitmapData = Assets.getBitmapData(_baseImgSrc); | |
_bmp.visible = true; | |
_bmp.width = totalWidth + (padding * 2); | |
_bmp.height = totalHeight + (padding * 2); | |
} |