[PATCH+IN TRUNK] Delete Signs with CTRL+Click immediately
Moderator: OpenTTD Developers
[PATCH+IN TRUNK] Delete Signs with CTRL+Click immediately
In multiplayer games signs are placed very often. A lot of them become unnecessary after a while. I created a very tiny patch for faster deletion of signs. With CTRL + Click the sign it will be deleted immediately without popping up the sign edit window. To avoid abuse of this method, it is currently only available for the owner of the sign.
Though this is the first patch I every showed to the public and its a very small one. Hints and critics are welcome.
Regards,
Osai
Though this is the first patch I every showed to the public and its a very small one. Hints and critics are welcome.
Regards,
Osai
- Attachments
-
- ctrl_delete_signs_r11624.patch
- patch to delete sign immediately with ctrl + click on sign
- (2.1 KiB) Downloaded 129 times
Last edited by osai on 12 Jun 2008 22:40, edited 1 time in total.
-
- Engineer
- Posts: 117
- Joined: 24 May 2007 00:30
Re: [PATCH] Delete Signs with CTRL+Click immediately
Good work, something us COOPers could use ^_^
http://zeroxia.myminicity.com Please visit
Re: [PATCH] Delete Signs with CTRL+Click immediately
hehe, so my suggestion for "sign dynamite" during the game last night actually paied off?
- belugas
- OpenTTD Developer
- Posts: 1507
- Joined: 05 Apr 2005 01:48
- Location: Deep down the deepest blue
- Contact:
Re: [PATCH] Delete Signs with CTRL+Click immediately
Good idea. May I suggest another quick approach?
Removed code duplication. Always a good thing to keep in mind
Removed code duplication. Always a good thing to keep in mind
- Attachments
-
- sign_removal.diff
- (1.88 KiB) Downloaded 120 times
If you are not ready to work a bit for your ideas, it means they don't count much for you.
OpenTTD and Realism? Well... Here are a few thoughs on the matter.
He he he he
------------------------------------------------------------
Music from the Bloody Time Zones
OpenTTD and Realism? Well... Here are a few thoughs on the matter.
He he he he
------------------------------------------------------------
Music from the Bloody Time Zones
Re: [PATCH] Delete Signs with CTRL+Click immediately
okay. I didn't want to add it to ShowRenameSignWindow(), because from a logically point of view its not the main job of this function. Though it removes extra lines of code.
Would be cool if you guys like it.
Would be cool if you guys like it.
Re: [PATCH] Delete Signs with CTRL+Click immediately
And how hard is it to change ownership again? Click it, press enter, ownership changed...osai wrote:To avoid abuse of this method, it is currently only available for the owner of the sign.
Nice patch though, it is A LOT faster than the delete button I made a while ago
Don't panic - My YouTube channel - Follow me on twitter (@XeryusTC) - Play Tribes: Ascend - Tired of Dropbox? Try SpiderOak (use this link and we both get 1GB extra space)
OpenTTD: manual #openttdcoop: blog | wiki | public server | NewGRF pack | DevZone
OpenTTD: manual #openttdcoop: blog | wiki | public server | NewGRF pack | DevZone
Re: [PATCH] Delete Signs with CTRL+Click immediately
Well, you can delete other people's sign now anyway with two clicks .... click the sign, press delete. I guess it is rather a protection against accidentally deleting someone else's sign, rather than against any sort of vandalism.XeryusTC wrote:And how hard is it to change ownership again? Click it, press enter, ownership changed...osai wrote:To avoid abuse of this method, it is currently only available for the owner of the sign.
Nice patch though, it is A LOT faster than the delete button I made a while ago :)
If you need something, do it yourself or it will be never done.
My patches: Extra large maps (1048576 high, 1048576 wide) (FS#1059), Vehicle + Town + Industry console commands (FS#1060), few minor patches (FS#2820, FS#1521, FS#2837, FS#2843), AI debugging facility
Other: Very large ships NewGRF, Bilbo's multiplayer patch pack v5 (for OpenTTD 0.7.3)
My patches: Extra large maps (1048576 high, 1048576 wide) (FS#1059), Vehicle + Town + Industry console commands (FS#1060), few minor patches (FS#2820, FS#1521, FS#2837, FS#2843), AI debugging facility
Other: Very large ships NewGRF, Bilbo's multiplayer patch pack v5 (for OpenTTD 0.7.3)
Re: [PATCH] Delete Signs with CTRL+Click immediately
It's just a kind of protection. Because this function is faster and not as time-consuming as the old method. In my opinion its a little bit of both, isn't it?Bilbo wrote:Well, you can delete other people's sign now anyway with two clicks .... click the sign, press delete. I guess it is rather a protection against accidentally deleting someone else's sign, rather than against any sort of vandalism.XeryusTC wrote:And how hard is it to change ownership again? Click it, press enter, ownership changed...osai wrote:To avoid abuse of this method, it is currently only available for the owner of the sign.
Nice patch though, it is A LOT faster than the delete button I made a while ago
Re: [PATCH] Delete Signs with CTRL+Click immediately
nice one..
And one thing:
And one thing:
Hit us with those other patches!osai wrote:Though this is the first patch I every showed to the public and its a very small one.
Regards,
Osai
The rest is confetti!
- planetmaker
- OpenTTD Developer
- Posts: 9432
- Joined: 07 Nov 2007 22:44
- Location: Sol d
Re: [PATCH] Delete Signs with CTRL+Click immediately
I like the idea and made an update.
- Attachments
-
- sign_removal_r13481.diff
- remove a sign with Ctrl+click for r13481
- (2.07 KiB) Downloaded 73 times
OpenTTD: manual | online content | translations | Wanted contributions and patches
#openttdcoop: blog | wiki | public server | DevZone | NewGRF web translator
DevZone - home of the free NewGRFs: OpenSFX | OpenMSX | OpenGFX | Swedish Rails | OpenGFX+ Trains|RV|Industries|Airports|Landscape | NML
- CommanderZ
- Tycoon
- Posts: 1872
- Joined: 07 Apr 2008 18:29
- Location: Czech Republic
- Contact:
Re: [PATCH] Delete Signs with CTRL+Click immediately
Great! I miss this feature so much in trunk. I hope you will fin your way into it quickly!
- planetmaker
- OpenTTD Developer
- Posts: 9432
- Joined: 07 Nov 2007 22:44
- Location: Sol d
Re: [PATCH] Delete Signs with CTRL+Click (trunk r13501)
I'm glad you like this patch. But I still hope that I will stay out of trunk as I'd not like to become an electronic toy - I don't mind, if the patch finds it way in there, though . I hope I followed all coding style rules correctly. Submitted to flyspray as #2068.CommanderZ wrote:I hope you will fin your way into it quickly!
New version: major internal re-write to better fit the coding requirements for trunk. Thanks SmatZ for advice & criticism.
IN TRUNK (r13501)
- Attachments
-
- sign_removal_v2_r13495.diff
- remove sign with Ctrl+Click (r13495)
- (1.85 KiB) Downloaded 78 times
OpenTTD: manual | online content | translations | Wanted contributions and patches
#openttdcoop: blog | wiki | public server | DevZone | NewGRF web translator
DevZone - home of the free NewGRFs: OpenSFX | OpenMSX | OpenGFX | Swedish Rails | OpenGFX+ Trains|RV|Industries|Airports|Landscape | NML
Re: [PATCH] Delete Signs with CTRL+Click immediately
With r13501 this feature is in trunk of OpenTTD... I am happy =)
props pm and SmatZ =)
props pm and SmatZ =)
Last edited by osai on 13 Jun 2008 07:53, edited 1 time in total.
Re: [PATCH+IN TRUNK] Delete Signs with CTRL+Click immediately
yey! Will suit us Opencoop guys perfectly
- CommanderZ
- Tycoon
- Posts: 1872
- Joined: 07 Apr 2008 18:29
- Location: Czech Republic
- Contact:
Re: [PATCH+IN TRUNK] Delete Signs with CTRL+Click immediately
Congratulations. OTTD is one more little bit better than before.
Who is online
Users browsing this forum: No registered users and 3 guests