can this be done easily?

Any suggestions or requests for the site? Let us know here!

Moderator: Shirluban

User avatar
or2az
Silver Boarder
Silver Boarder
Posts: 763
Joined: Tue Aug 20, 2013 5:10 pm
Location: USA

can this be done easily?

Post by or2az » Fri Jan 30, 2015 6:43 am

I don't know very much about computer software or the programming that's involved in creating websites or elaborate things like this forum but I was wondering about this, so with nothing to lose, I thought I would ask.
On the right side of the drafting page, there are 34 different tiles used in mahjong hands, a bunch of yellow circles with a variety of smiley faces, and five lines of items that are either on or off. There is also quite a bit of unused space below the drafting area.
I was curious as to how easy (or complicated) it would be to move the smiley faces and the items below them to an unused portion of the page and add 4 more tiles and a button to the 34 already there. The tiles would be each of the red fives and a backside view of a tile. The button would rotate a selected tile by 90 degrees.
This would enable concealed kongs and melded items to be better depicted when illustrating a hand. Same goes for the red fives.
These all seem to be important parts of japanese mahjong and since I wasn't able to do certain things the way I wanted to in a couple of recent posts, I thought I would just ask and see where it led, if anywhere.

User avatar
Shirluban
Moderator
Moderator
Posts: 761
Joined: Thu Jan 22, 2009 1:53 pm
Location: Svartalfheim
Contact:

Re: can this be done easily?

Post by Shirluban » Fri Jan 30, 2015 12:16 pm

or2az wrote:I was curious as to how easy (or complicated) it would be to move the smiley faces and the items below them to an unused portion of the page
I don't know, I must look at the source code.
Is there anyone familiar with phpBB templates here?
Edit: I've found how to do it, but you'll have to wait until I put it in place. :P
or2az wrote:and add 4 more tiles
That should be fairly easy, hoping the copyright holder doesn't have any objection.
or2az wrote:The button would rotate a selected tile by 90 degrees.
It is possible to make a BBcode to rotate an image via CSS, but the property for it gives strange results, as the rotated image doesn't fit its new space.
http://www.w3schools.com/cssref/playit. ... orm_rotate
A more reliable solution would be to copy all images, rotate them in an image editor, and make 34+4 new smilies for them... but that would be a lot of smilies.

Another problem would be to install and apply those changes on the site. I'm not sure if I have enough rights to do it.
Edit:Looks like I don't.
Cats don't do タンヤオ (tan-yao) but タニャーオ (ta-nya-o).
World Riichi Championship Rules
Comparison of riichi rules around the world

Referee
Expert Reacher
Expert Reacher
Posts: 368
Joined: Sat Apr 24, 2010 6:24 pm

Re: can this be done easily?

Post by Referee » Fri Jan 30, 2015 4:11 pm

We could adopt a convention of using a turned tile as a representation of a turned tile for open sets (Just for discussion, during play we should keep doing as usual). The only thing that could be tricky is ryanmen waits. So I suggest these conventions.

* Groups of three tiles with one of them being backside up are called tiles. On a minkou, the turned tile indicates position of discarder if that is needed for discussion.
* For calls of 'chii', the tiles should be put in numerical order, since obviously called tile is from Left. (Alternative, put called tile on the left, except on ryanmen, where we can put the tile on the right if it's the high end one)
* Kan should have one tile turned upside down for daiminkan. Those called from center can have the second or third tile showing the back indifferently.
* Shouminkan should be showed by having two adjacent turned tiles, with position of them showing discarder as usual.
* Ankan are shown as usual, with turned down tiles on the sides, and right-side up tiles in the middle.

What do you guys think? (There is still no easy way to show riichi, but I guess we can arrange something for that, too.

PS: While you are adding the tile back, add two of them, one being red. This way we can show a red five upside down. ;)

User avatar
Shirluban
Moderator
Moderator
Posts: 761
Joined: Thu Jan 22, 2009 1:53 pm
Location: Svartalfheim
Contact:

Re: can this be done easily?

Post by Shirluban » Tue Feb 03, 2015 11:16 pm

Nevermind, it's do-able in CSS.

Now I have to beg Jenn for more permissions.
Cats don't do タンヤオ (tan-yao) but タニャーオ (ta-nya-o).
World Riichi Championship Rules
Comparison of riichi rules around the world

User avatar
Shirluban
Moderator
Moderator
Posts: 761
Joined: Thu Jan 22, 2009 1:53 pm
Location: Svartalfheim
Contact:

Re: can this be done easily?

Post by Shirluban » Sun Feb 22, 2015 4:41 pm

Done. :D

Use the "sidetile" BBCode to rotate one or even two tiles.

:back 1-bam 1-bam :back
:east :east :east
5-crak 5-crak 5-crak-red 5-crak

I've also changed the font's color swatch.
Cats don't do タンヤオ (tan-yao) but タニャーオ (ta-nya-o).
World Riichi Championship Rules
Comparison of riichi rules around the world

User avatar
Shirluban
Moderator
Moderator
Posts: 761
Joined: Thu Jan 22, 2009 1:53 pm
Location: Svartalfheim
Contact:

Re: can this be done easily?

Post by Shirluban » Sun Feb 22, 2015 4:54 pm

Also, please don't use the "sidetile" BBCode for other images than tiles, because that won't work :riichi .
Cats don't do タンヤオ (tan-yao) but タニャーオ (ta-nya-o).
World Riichi Championship Rules
Comparison of riichi rules around the world

User avatar
or2az
Silver Boarder
Silver Boarder
Posts: 763
Joined: Tue Aug 20, 2013 5:10 pm
Location: USA

Re: can this be done easily?

Post by or2az » Sun Feb 22, 2015 7:00 pm

Now that is really cool!

The way I used to do it:

5-bam 5-bam 5-bam..... white-dra 8-dot 8-dot white-dra 9-crak 9-crak 9-crak 9-crak 5-dot 5-dot 5-dot 5-crak 5-crak
......................red.....................................................................................................................red.................red.....

The way I can now do it:
5-bam 5-bam 5-bam-red ..... :back 8-dot 8-dot :back 9-crak 9-crak 9-crak 9-crak 5-dot 5-dot 5-dot-red 5-crak 5-crak-red


Not quite sure how to use this :riichi (riichi stick)

Referee
Expert Reacher
Expert Reacher
Posts: 368
Joined: Sat Apr 24, 2010 6:24 pm

Re: can this be done easily?

Post by Referee » Sun Feb 22, 2015 8:50 pm

This is awesome, thank you very much.

If you allow me to be a bit too much OCD-ish, could the rotate be done clockwise? I don't know, it seems to look nicer that way. Ruleswise, does mahjong instruct you to do the rotation on a specific direction or any one would do?

Testing one thing... 7-bam 7-bam 7-bam

Nope, didn't work. Didn't think it would, but I reckoned it was worth a try anyway. :P

User avatar
or2az
Silver Boarder
Silver Boarder
Posts: 763
Joined: Tue Aug 20, 2013 5:10 pm
Location: USA

Re: can this be done easily?

Post by or2az » Mon Feb 23, 2015 12:45 am

Barts guide has every single sideways illustration done with a counter-clockwise turn, if that helps.

User avatar
Shirluban
Moderator
Moderator
Posts: 761
Joined: Thu Jan 22, 2009 1:53 pm
Location: Svartalfheim
Contact:

Re: can this be done easily?

Post by Shirluban » Mon Feb 23, 2015 1:42 am

Referee wrote:could the rotate be done clockwise? I don't know, it seems to look nicer that way. Ruleswise, does mahjong instruct you to do the rotation on a specific direction or any one would do?
Certainly, but rotating one way or another doesn't seem very relevant, and every one has his own tastes.
I find it nice counter-clockwise.

By the way, be searching for such images, I've found the coolest way to draw and discard:
https://www.youtube.com/watch?v=d--8FXM2OEY
Cats don't do タンヤオ (tan-yao) but タニャーオ (ta-nya-o).
World Riichi Championship Rules
Comparison of riichi rules around the world

User avatar
Ignatius
Silver Boarder
Silver Boarder
Posts: 616
Joined: Sun Apr 04, 2010 7:54 pm
Location: (From Spain) In Ireland (EU) since 2016, so lazy I didn´t update this until 2019... (私は初心者だし、よろしく)

Re: can this be done easily?

Post by Ignatius » Mon Feb 23, 2015 2:29 am

Shirluban wrote:
Referee wrote:could the rotate be done clockwise? I don't know, it seems to look nicer that way. Ruleswise, does mahjong instruct you to do the rotation on a specific direction or any one would do?
Certainly, but rotating one way or another doesn't seem very relevant, and every one has his own tastes.
I find it nice counter-clockwise.

By the way, be searching for such images, I've found the coolest way to draw and discard:
https://www.youtube.com/watch?v=d--8FXM2OEY
And I found that it´s from an old adult game called 雀姫 レディース マージャンリーグ Mahjong Princess: Ladies Mahjong League, from Apple Pie Co. In this case a game under Succubus group. For Windows 95/98, feel old, man.

Info taken from Japanese Wikipedia and last link inside that Wikipedia page...
Life is as beautiful as you want it to be, but it´s only one. That´s why you must not get tired of it. Don´t care if you don´t say something that seems "important" because your mere existence is important for someone.

User avatar
Barticle
Platinum Boarder
Platinum Boarder
Posts: 1391
Joined: Thu Apr 30, 2009 12:08 pm
Location: Ipswich, UK (and usually 一向聴地獄)
Contact:

Re: can this be done easily?

Post by Barticle » Mon Feb 23, 2015 6:58 pm

I just did a quick survey of Japanese books and screenshots saved from a few different games and couldn't find one clockwise example.

A Google search finds a few clockwise images though. This one should please both camps (or neither).

I'm sorry to report that I'm not seeing rotated tiles. No effect in Google Chrome (current version) and one tile slightly lower (unrotated) in IE11. :?

Emperor's new tiles?

User avatar
Shirluban
Moderator
Moderator
Posts: 761
Joined: Thu Jan 22, 2009 1:53 pm
Location: Svartalfheim
Contact:

Re: can this be done easily?

Post by Shirluban » Mon Feb 23, 2015 7:47 pm

I confess I haven't checked on Chrome, but for me it works on IE9 and upper (tested via the development tools of IE11).
According to this page, it should works on Chrome.
Can you refresh your browsers' cache?
Cats don't do タンヤオ (tan-yao) but タニャーオ (ta-nya-o).
World Riichi Championship Rules
Comparison of riichi rules around the world

User avatar
Barticle
Platinum Boarder
Platinum Boarder
Posts: 1391
Joined: Thu Apr 30, 2009 12:08 pm
Location: Ipswich, UK (and usually 一向聴地獄)
Contact:

Re: can this be done easily?

Post by Barticle » Mon Feb 23, 2015 8:14 pm

A simple refresh in Chrome actually sorted it. Looking good!

In IE I've done a forced refresh and cleared the browsing history but still not getting it.

User avatar
or2az
Silver Boarder
Silver Boarder
Posts: 763
Joined: Tue Aug 20, 2013 5:10 pm
Location: USA

Re: can this be done easily?

Post by or2az » Mon Feb 23, 2015 8:44 pm

As I mentioned to Bart, it works perfectly in Firefox too, as well as Chrome, but not in Internet Explorer.

Post Reply