SRPG Studio

SRPG Studio

Is that possible to use DIY pictures to replace text words on the user interface?
Hi, is there a method to use .png pictures to show text layout of title/battle prep command, such as "New Game", "Load Game" in the title menu? Sometimes the game interface may look very pretty by using self-found pictures, instead of text words on the buttons, just like those classical gal-games. Is that possible by using scripts? Thank you!
Last edited by DrususClaudius; Nov 11, 2018 @ 8:24am
Originally posted by SapphireSoft:
You must use a script. The following drawScrollContent method is a hint.

(function() {

TitleScreenScrollbar.drawScrollContent = function(x, y, object, isSelect, index) {
}

})();
< >
Showing 1-11 of 11 comments
The author of this thread has indicated that this post answers the original topic.
SapphireSoft  [developer] Nov 15, 2018 @ 6:59am 
You must use a script. The following drawScrollContent method is a hint.

(function() {

TitleScreenScrollbar.drawScrollContent = function(x, y, object, isSelect, index) {
}

})();
DrususClaudius Nov 16, 2018 @ 5:48am 
Originally posted by SapphireSoft:
You must use a script. The following drawScrollContent method is a hint.

(function() {

TitleScreenScrollbar.drawScrollContent = function(x, y, object, isSelect, index) {
}

})();
Thank you! I will take a try. Btw, is there any scripts I can reference in the original code?
SapphireSoft  [developer] Nov 16, 2018 @ 7:10am 
There is no original code. You paste the above code into a text file and place the file in the plugin folder. Then write the drawScrollContent method code yourself. To write the code you need javascript knowledge.
DrususClaudius Nov 16, 2018 @ 7:55am 
Originally posted by SapphireSoft:
There is no original code. You paste the above code into a text file and place the file in the plugin folder. Then write the drawScrollContent method code yourself. To write the code you need javascript knowledge.
Thank you! I got it!
DrususClaudius Nov 21, 2018 @ 9:33pm 
Originally posted by SapphireSoft:
There is no original code. You paste the above code into a text file and place the file in the plugin folder. Then write the drawScrollContent method code yourself. To write the code you need javascript knowledge.
I tried today and the result seems successful. Therefore I have a further question. How can I change the distribution of title screen scroll bars? For a example, now they are distributed vertically but I want to change the distribution into horizontal. Which script should I use?
I found the original code seems to have some relation to my solution, such as:
_drawScrollbar: function() {
var x, y;
var width = this._scrollbar.getScrollbarWidth();
var height = this._scrollbar.getScrollbarHeight();
var dx = LayoutControl.getRelativeX(8) - 60;
var dy = LayoutControl.getRelativeY(7);

x = root.getGameAreaWidth() - width - dx;
y = root.getGameAreaHeight() - height - dy;
this._scrollbar.drawScrollbar(x, y);
}
However, I am not sure which variable and function controls the distribution of title screen scroll bars and the selection cursor. Do you have any ideas?
SapphireSoft  [developer] Nov 22, 2018 @ 12:18am 
this._scrollbar.setScrollFormation(1, this._commandArray.length);

Change the argument of the above method.
scene-title.js Line 54
DrususClaudius Nov 22, 2018 @ 6:09pm 
Originally posted by SapphireSoft:
this._scrollbar.setScrollFormation(1, this._commandArray.length);

Change the argument of the above method.
scene-title.js Line 54
I got it. Thank you very much!
And which lines can change the size of scroll bars, which means can control the width and height of scroll bars?
Last edited by DrususClaudius; Nov 22, 2018 @ 7:58pm
SapphireSoft  [developer] Nov 22, 2018 @ 11:13pm 
It is getObjectWidth and getObjectHeight.
scene-title.js Line 283
DrususClaudius Feb 26, 2020 @ 4:58pm 
Originally posted by SapphireSoft:
It is getObjectWidth and getObjectHeight.
scene-title.js Line 283
And now I want to hide the little finger (select crusor) which is pointing at the objects. Which line should I go to hide the draw?
Last edited by DrususClaudius; Feb 26, 2020 @ 5:24pm
SapphireSoft  [developer] Feb 27, 2020 @ 1:32am 
TitleScreenScrollbar inherits from BaseScrollbar.
BaseScrollbar implements drawCursor.

So you can implement TitleScreenScrollbar.drawCursor.
DrususClaudius Feb 27, 2020 @ 10:38pm 
Thanks a lot Sapphire.
< >
Showing 1-11 of 11 comments
Per page: 1530 50

Date Posted: Nov 11, 2018 @ 8:10am
Posts: 11