Skip to content

Commit

Permalink
actualy i will test it tomorrow maybe
Browse files Browse the repository at this point in the history
afternoon.

i still doubt about it working, im gonna admnit, i kinda just suck at it, but who knows?
  • Loading branch information
charlesisfeline committed Mar 1, 2024
1 parent 499f367 commit 3147b3b
Show file tree
Hide file tree
Showing 6 changed files with 339 additions and 17 deletions.
2 changes: 0 additions & 2 deletions Project.xml
Original file line number Diff line number Diff line change
Expand Up @@ -116,8 +116,6 @@
<!-- Enables a terminal log prompt on debug builds -->
<haxelib name="hxcpp-debug-server" if="debug"/>

<haxelib name="flixel-screenshot-plugin" />

<section unless="mac">
<haxelib name="systools" />
<ndll name="systools" haxelib="systools" />
Expand Down
5 changes: 0 additions & 5 deletions hmm.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,6 @@
"ref": "develop",
"url": "https://github.com/VsFoxaDevs/lime"
},
{
"name": "flixel-screenshot-plugin",
"type": "haxelib",
"version": null
},
{
"name": "haxeui-core",
"type": "haxelib",
Expand Down
2 changes: 1 addition & 1 deletion source/backend/ClientPrefs.hx
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ import states.StartingState;
public var showTotalFPS:Bool = false;
public var memory:Bool = true;
public var totalMemory:Bool = false;
public var engineVersion:Bool = false;
public var engineVersion:Bool = true;
public var debugInfo:Bool = false;
public var rainbowFPS:Bool = false;
public var redText:Bool = true;
Expand Down
18 changes: 11 additions & 7 deletions source/debug/FPSCounter.hx
Original file line number Diff line number Diff line change
Expand Up @@ -2,16 +2,17 @@ package debug;

import openfl.text.TextField;
import openfl.text.TextFormat;
#if flash
import openfl.Lib;
#end
import openfl.events.Event;

#if openfl
import openfl.system.System;
#end

import states.MainMenuState;

using StringTools;

/**
modified version of openfl's fps counter, lol
**/
Expand Down Expand Up @@ -65,13 +66,13 @@ class FPSCounter extends TextField {
currentTime = 0;
times = [];

#if flash
//#if flash
addEventListener(Event.ENTER_FRAME, function(e)
{
var time = Lib.getTimer();
__enterFrame(time - currentTime);
});
#end
//#end
}

// Event Handlers
Expand Down Expand Up @@ -110,9 +111,12 @@ class FPSCounter extends TextField {

if (ClientPrefs.data.totalMemory) text += "\n" + CoolUtil.formatMemory(Std.int(maximumMemory));

if (ClientPrefs.data.engineVersion) text += "\n[ALLEYWAY VER] 1.0b / [PE VER]" + MainMenuState.psychEngineVersion;
if (ClientPrefs.data.engineVersion) {
text += "\n[ALLEYWAY VER] 1.0b / [PE VER]" + MainMenuState.psychEngineVersion;
text += "\n[VS.FOXA VER] 3.0 SE";
}

#if debug
// #if debug
if (ClientPrefs.data.debugInfo) {
text += '\nState: ${Type.getClassName(Type.getClass(FlxG.state))}';
if (FlxG.state.subState != null)
Expand All @@ -123,7 +127,7 @@ class FPSCounter extends TextField {
text += "\nGL Shading version: " + '${getGLInfo(SHADING_LANGUAGE_VERSION)})';
text += "\nFlixel: " + FlxG.VERSION;
}
#end
// #end

if (ClientPrefs.data.redText) {
textColor = FlxColor.fromRGBFloat(255, 255, 255, realAlpha);
Expand Down
Loading

0 comments on commit 3147b3b

Please sign in to comment.