-
Notifications
You must be signed in to change notification settings - Fork 14
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
--------------- Added Zero button in Memory window to reset a page to zero. Fixed Asset Loading - when LUT data already exists, we often ended up in an infinite loop, for 8bpp image. We now exit the LUT loop when the mask equals $C0 (only 2 bits). Added an "Overwrite LUT" checkbox in the Asset Loader. Updated the Game Generator to use the new VICKY "GENERAL" file. Added specialized checkboxes to display which interrupt was triggered, in the CPU window.
- Loading branch information
Showing
19 changed files
with
477 additions
and
187 deletions.
There are no files selected for viewing
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,71 @@ | ||
using System; | ||
using System.Collections.Generic; | ||
using System.Drawing; | ||
using System.Linq; | ||
using System.Text; | ||
using System.Threading.Tasks; | ||
using System.Windows.Forms; | ||
|
||
namespace FoenixIDE.Simulator.Controls | ||
{ | ||
class ColorCheckBox: CheckBox | ||
{ | ||
private bool active; | ||
public bool IsActive | ||
{ | ||
get | ||
{ | ||
return active; | ||
} | ||
set | ||
{ | ||
active = value; | ||
Invalidate(); | ||
} | ||
} | ||
|
||
public ColorCheckBox() | ||
{ | ||
Appearance = System.Windows.Forms.Appearance.Normal; | ||
FlatStyle = System.Windows.Forms.FlatStyle.Flat; | ||
TextAlign = ContentAlignment.MiddleRight; | ||
FlatAppearance.BorderSize = 0; | ||
AutoSize = false; | ||
Height = 16; | ||
} | ||
|
||
protected override void OnPaint(PaintEventArgs pevent) | ||
{ | ||
pevent.Graphics.Clear(BackColor); | ||
Size box = new Size(Size.Width - 2, Size.Height - 2); | ||
SolidBrush foreBrush = new SolidBrush(ForeColor); | ||
if (Text.Length > 0) | ||
{ | ||
|
||
pevent.Graphics.DrawString(Text, Font, foreBrush, 27, 0); | ||
} | ||
|
||
Rectangle rect = new Rectangle(new Point(0,0), box); | ||
|
||
pevent.Graphics.FillRectangle(active ? Brushes.Crimson : Brushes.White, rect); | ||
|
||
if (Checked) | ||
{ | ||
using (Font wing = new Font("Wingdings", 10f)) | ||
pevent.Graphics.DrawString("ü", wing, foreBrush, -1, 0); | ||
} | ||
pevent.Graphics.DrawRectangle(Pens.DarkSlateBlue, rect); | ||
|
||
Rectangle fRect = ClientRectangle; | ||
|
||
//if (Focused) | ||
//{ | ||
// fRect.Inflate(-1, -1); | ||
// using (Pen pen = new Pen(Brushes.Gray) { DashStyle = System.Drawing.Drawing2D.DashStyle.Dot }) | ||
// pevent.Graphics.DrawRectangle(pen, fRect); | ||
//} | ||
} | ||
} | ||
|
||
|
||
} |
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
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
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
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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
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
Oops, something went wrong.