Video Tutorials For Open TTD
Moderator: OpenTTD Developers
I can now say that it is indeed doable. I got a small "tutorial" working here. It clicks the network game button, clicks the player name field, and types some text.
A tutorial is a sequence of action. Possible actions are:
* Move mouse
* Click mouse
* Left mouse down
* Left mouse up
* Type text
For each action a target and a delay can be set. The delay is the number of game cycles to wait until the target is started. Target is specified in the format "window: window_name widgetid: id coord: x, y".
As for percentages, I could add those too.
A tutorial is a sequence of action. Possible actions are:
* Move mouse
* Click mouse
* Left mouse down
* Left mouse up
* Type text
For each action a target and a delay can be set. The delay is the number of game cycles to wait until the target is started. Target is specified in the format "window: window_name widgetid: id coord: x, y".
As for percentages, I could add those too.
- Attachments
-
- tutorial4.diff
- Press ESCAPE to start the tutorial.
- (20.99 KiB) Downloaded 56 times
-
- test.tut.txt
- A _very_ simple tutorial
- (452 Bytes) Downloaded 90 times
Last edited by egladil on 17 Dec 2005 00:42, edited 7 times in total.
I don't think those will be needed. We just use absolute x,y compared to the top left corner and moves the top bar to the left. That way it will all happen in the top left area if you select a huge screen, but it will show on all monitors (except the PDAs that got less than 640x480, but those aren't officially supported anyway)egladil wrote:As for percentages, I could add those too.
This sound simply great!
Last edited by Pilatus on 17 Dec 2005 16:13, edited 1 time in total.
If no end are at hand try your feet...
When dynamic news will be done, it would be also good to use them in tutorials. Right-clicking, shift-clicking and ctrl-clicking should be done, too.
Very good thing would be also information on the bottom panel. Currently summarized news scroll down there, but it would be also good if information "what do we do now" was showed there.
Very good thing would be also information on the bottom panel. Currently summarized news scroll down there, but it would be also good if information "what do we do now" was showed there.
Yes. Button two in the build rail window is widget 5, so that would look like this:
or
if you want to move to the middle of the button.
The zero in the end is how long (in game cycles) after the last action this should be done.
I've looked at naming the buttons, but as there is 1405 widgets in openttd that is quite a task.
Code: Select all
mouse_move "window: build_toolbar widget: 5" 0
Code: Select all
mouse_move "window: build_toolbar widget: 5 center" 0
The zero in the end is how long (in game cycles) after the last action this should be done.
I've looked at naming the buttons, but as there is 1405 widgets in openttd that is quite a task.
Who is online
Users browsing this forum: No registered users and 4 guests