Skip to content

Commit

Permalink
retire showAlertDialog
Browse files Browse the repository at this point in the history
  • Loading branch information
mcagabe19 committed Jan 9, 2025
1 parent de6019e commit 71ff9d6
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 6 deletions.
6 changes: 3 additions & 3 deletions source/CoolUtil.hx
Original file line number Diff line number Diff line change
Expand Up @@ -152,10 +152,10 @@ class CoolUtil

public static function showPopUp(message:String, title:String):Void
{
#if android
/*#if android
android.Tools.showAlertDialog(title, message, {name: "OK", func: null}, null);
#else
#else*/
FlxG.stage.window.alert(message, title);
#end
//#end
}
}
7 changes: 4 additions & 3 deletions source/openfl/display/Shader.hx
Original file line number Diff line number Diff line change
Expand Up @@ -346,9 +346,10 @@ class Shader
}
#end
if (compileStatus == 0)
#if (android && !macro)
/*#if (android && !macro)
android.Tools.showAlertDialog("Shader Compile Error!", message, {name: "OK", func: null}, null)
#elseif !ios
#elseif !ios*/
#if !macro
openfl.Lib.application.window.alert('$message', 'Shader Compile Error!')
#else
Log.error(message)
Expand Down Expand Up @@ -982,4 +983,4 @@ class Shader
}
#else
typedef Shader = flash.display.Shader;
#end
#end

0 comments on commit 71ff9d6

Please sign in to comment.