Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

RemoteConsole: hide-game communication #263

Merged
merged 1 commit into from
Jan 23, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions bin/app.html
Original file line number Diff line number Diff line change
Expand Up @@ -108,6 +108,7 @@
</div>
<separator></separator>
<menu label="Memory profiler" class="memprof"></menu>
<menu label="Remote console" class="remoteconsole"></menu>
<menu label="Gpu mem dump" class="gpudump"></menu>
</menu>
<menu label="Settings" class="settings">
Expand Down
47 changes: 47 additions & 0 deletions bin/style.css
Original file line number Diff line number Diff line change
Expand Up @@ -3476,6 +3476,53 @@ div.gradient-box {
.profiler .right-panel .files-input #process-btn {
width: 100%;
}
.remoteconsole .ico {
padding-left: 2px;
padding-right: 2px;
cursor: pointer;
}
.remoteconsole .remoteconsole-panel {
border: 2px dashed #444444;
border-radius: 4px;
margin: 2px;
margin-bottom: 10px;
padding: 2px;
box-sizing: border-box;
}
.remoteconsole .remoteconsole-panel .controls {
float: right;
}
.remoteconsole .remoteconsole-panel .logs {
margin-top: 2px;
margin-bottom: 2px;
background-color: #151515;
height: 100px;
overflow-y: auto;
}
.remoteconsole .remoteconsole-panel .logs p {
margin-block-start: 0px;
margin-block-end: 0px;
}
.remoteconsole .remoteconsole-panel .logs .error {
color: #ff2828;
}
.remoteconsole .remoteconsole-panel .commands input {
margin-left: 2px;
margin-right: 2px;
}
.remoteconsole .remoteconsole-panel .commands input:disabled {
background-color: #333333;
}
.remoteconsole .remoteconsole-panel .commands fieldset {
border: 1px dashed #333333;
}
.remoteconsole .remoteconsole-panel .commands .sub-command {
margin: 3px 0px;
}
.remoteconsole .new-panel {
cursor: pointer;
text-align: center;
}
.hover-parent .hover-reveal {
visibility: hidden;
}
Expand Down
60 changes: 60 additions & 0 deletions bin/style.less
Original file line number Diff line number Diff line change
Expand Up @@ -4056,6 +4056,66 @@ div.gradient-box {
}
}

.remoteconsole {

.ico {
padding-left: 2px;
padding-right: 2px;
cursor: pointer;
}

.remoteconsole-panel {
border: 2px dashed #444444;
border-radius: 4px;
margin: 2px;
margin-bottom: 10px;
padding: 2px;
box-sizing: border-box;

.controls {
float: right;
}

.logs {
margin-top: 2px;
margin-bottom: 2px;
background-color: #151515;
height: 100px;
overflow-y: auto;

p {
margin-block-start: 0px;
margin-block-end: 0px;
}

.error {
color: #ff2828;
}
}

.commands {
input {
margin-left: 2px;
margin-right: 2px;
}
input:disabled {
background-color: #333333;
}
fieldset {
border: 1px dashed #333333;
}
.sub-command {
margin: 3px 0px;
}
}
}

.new-panel {
cursor: pointer;
text-align: center;
}
}

.hover-parent {
.hover-reveal {
visibility: hidden;
Expand Down
3 changes: 3 additions & 0 deletions hide/Ide.hx
Original file line number Diff line number Diff line change
Expand Up @@ -1437,6 +1437,9 @@ class Ide extends hide.tools.IdeData {
quickMessage("Memory Profiler not available. Please update hashlink to version 1.15.0 or later.");
#end
});
analysis.find(".remoteconsole").click(function(_) {
open("hide.view.RemoteConsoleView",{});
});
analysis.find(".gpudump").click(function(_) {
var path = hide.tools.MemDump.gpudump();
quickMessage('Gpu mem dumped at ${path}.');
Expand Down
Loading
Loading