Skip to content

Commit

Permalink
standalone_inline build
Browse files Browse the repository at this point in the history
  • Loading branch information
increpare committed Apr 26, 2024
1 parent 03e47c4 commit 5312783
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .build/buildnumber.txt
Original file line number Diff line number Diff line change
@@ -1 +1 @@
1747
1748
9 changes: 7 additions & 2 deletions src/standalone_inlined.txt
Original file line number Diff line number Diff line change
Expand Up @@ -7060,8 +7060,11 @@ function drawEditorIcons(mini,minj) {

}
}
if (mouseIndex===-1){
tooltip_string = "print level to console"
}
// prepare tooltip: content of a level's cell
else if ( (mouseCoordX >= 0) && (mouseCoordY >= 0) && (mouseCoordX < screenwidth) && (mouseCoordY < screenheight-editorRowCount) )
else if ( (mouseCoordX >= 0) && (mouseCoordY >= 0) && (mouseCoordX < screenwidth) && (mouseCoordY < screenheight-editorRowCount-2) )
{
const posMask = level.getCellInto((mouseCoordY+minj) + (mouseCoordX+mini)*level.height, _o12);
tooltip_objects = state.idDict.filter( (x,k) => (posMask.get(k) != 0) )
Expand Down Expand Up @@ -14996,7 +14999,7 @@ function selectText(containerid,e) {
e = e || window.event;
var myspan = document.getElementById(containerid);
if (e&&(e.ctrlKey || e.metaKey)) {
var levelarr = ["console"].concat(myspan.innerHTML.split("<br>"));
var levelarr = ["console"].concat(myspan.innerText.split("\n"));
var leveldat = levelFromString(state,levelarr);
loadLevelFromLevelDat(state,leveldat,null);
canvasResize();
Expand Down Expand Up @@ -15685,6 +15688,7 @@ function checkKey(e,justPressed) {
break;
}
case 189://-
case 109://numpad -
{
if (levelEditorOpened&&justPressed) {
if (glyphSelectedIndex>0) {
Expand All @@ -15696,6 +15700,7 @@ function checkKey(e,justPressed) {
break;
}
case 187://+
case 107://numpad +
{
if (levelEditorOpened&&justPressed) {
if (glyphSelectedIndex+1<glyphImages.length) {
Expand Down

0 comments on commit 5312783

Please sign in to comment.