Skip to content

Commit b5ef5f6

Browse files
committed
some changes
1 parent 733941b commit b5ef5f6

File tree

3 files changed

+16
-16
lines changed

3 files changed

+16
-16
lines changed

res/img/icon.png

187 Bytes
Loading

settings/settings.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
"vsync" : false
2020
},
2121
"scale" : 1,
22-
"width" : 1024
22+
"width" : 722
2323
},
2424
"console" :
2525
{

src/main.cpp

Lines changed: 15 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -100,20 +100,20 @@ int main(int argc, char* args[]) {
100100
instNameTitle = "Instruction name:";
101101
instNameValue = "-----";
102102
//Progress bar
103-
TextEntity progressBarIfTitle(Vector2f(178, 1), fontTexture, &font);
104-
TextEntity progressBarIdTitle(Vector2f(186, 1), fontTexture, &font);
105-
TextEntity progressBarOfTitle(Vector2f(194, 1), fontTexture, &font);
106-
TextEntity progressBarIeTitle(Vector2f(202, 1), fontTexture, &font);
107-
Entity progressBarEntity(Vector2f(178, 4), progressBarTexture, 16, 64);
108-
Entity progressBarNowEntity(Vector2f(178, 4), progressBarNowTexture);
109-
Entity progressBarNextEntity(Vector2f(186, 4), progressBarNextTexture);
110-
Entity progressBarAllEntity(Vector2f(178, 4), progressBarAllTexture, 16, 64);
103+
TextEntity progressBarIfTitle(Vector2f(111, 1), fontTexture, &font);
104+
TextEntity progressBarIdTitle(Vector2f(119, 1), fontTexture, &font);
105+
TextEntity progressBarOfTitle(Vector2f(127, 1), fontTexture, &font);
106+
TextEntity progressBarIeTitle(Vector2f(135, 1), fontTexture, &font);
107+
Entity progressBarEntity(Vector2f(111, 4), progressBarTexture, 16, 64);
108+
Entity progressBarNowEntity(Vector2f(111, 4), progressBarNowTexture);
109+
Entity progressBarNextEntity(Vector2f(119, 4), progressBarNextTexture);
110+
Entity progressBarAllEntity(Vector2f(111, 4), progressBarAllTexture, 16, 64);
111111
//Buttons
112-
Button fastButton(Vector2f(211, 1), HitBox2d(211, 1, 7, 7), fastTexture, fastPressedTexture);
113-
Button playButton(Vector2f(220, 1), HitBox2d(220, 1, 7, 7), playTexture, playPressedTexture);
114-
Button nextButton(Vector2f(229, 1), HitBox2d(229, 1, 7, 7), nextTexture, nextPressedTexture);
115-
Button pauseButton(Vector2f(238, 1), HitBox2d(238, 1, 7, 7), pauseTexture, pausePressedTexture);
116-
Button reloadButton(Vector2f(247, 1), HitBox2d(247, 1, 7, 7), reloadTexture, reloadPressedTexture);
112+
Button fastButton(Vector2f(111, 12), HitBox2d(111, 12, 7, 7), fastTexture, fastPressedTexture);
113+
Button playButton(Vector2f(120, 12), HitBox2d(120, 12, 7, 7), playTexture, playPressedTexture);
114+
Button nextButton(Vector2f(129, 12), HitBox2d(129, 12, 7, 7), nextTexture, nextPressedTexture);
115+
Button pauseButton(Vector2f(138, 12), HitBox2d(138, 12, 7, 7), pauseTexture, pausePressedTexture);
116+
Button reloadButton(Vector2f(147, 12), HitBox2d(147, 12, 7, 7), reloadTexture, reloadPressedTexture);
117117
fpsCounter = fpsText + fpsString;
118118
fpsCounterEntity = fpsCounter;
119119
//CPU
@@ -384,8 +384,8 @@ int main(int argc, char* args[]) {
384384
cellsValues[i] = "0x" + math::Uint8ToHexstr(CM.get(j));
385385
}
386386
CPU.getPhases(phaseNow, phaseNext);
387-
progressBarNowEntity.setX(178 + 8 * phaseNow);
388-
progressBarNextEntity.setX(178 + 8 * phaseNext);
387+
progressBarNowEntity.setX(111 + 8 * phaseNow);
388+
progressBarNextEntity.setX(111 + 8 * phaseNext);
389389
abValue = "0x" + math::Uint16ToHexstr(SB.getAddress());
390390
dbValue = "0x" + math::Uint16ToHexstr(SB.getData());
391391
cbValue = math::ControlBusToHexstr(SB.getControl());

0 commit comments

Comments
 (0)