これは mikutter Advent Calender 2013 8日目の記事になります.
@toshi_a というておくれの教祖については、
mikutterユーザーの皆様はよくご存知だと思います.
そんな彼は今年のAdvent Calenderにかような記事を出しました
mikutter Advent Calendar 2013 3日目 mikutterのマルチアカウント・マルチサービス
mikutterは次期メジャーアップデートのver0.3からマルチアカウント・マルチサービスに対応しています.
その例として彼は*プレイしたこともない*艦これをプレイするプラグインをリリースしました.
私がこれに気がついたのはこの記事が書かれた実に2日後でしたが、
まだmikutterで艦これという声は聞こえてきていませんでした.
そこで、!!純粋に!!mikutterで艦これをしてみたいという欲求の元このプラグインをインストールしました.
結果
そして
mikutterで艦これ、やってみました。動作しました。ruby1.9だと動作しないかも? なんでアイコンが全部妙高さんになるんですかね…… http://t.co/BzSeI6XRih
— 全てのておくれを生まれる前に消し去りたい (@kotatsu_mi) 2013, 12月 5
http://t.co/zpclz6ulfd このmikutter艦これプラグインのとしぁさんの巧妙な罠のせいでreplyタブがめっちゃ怖いしとしぁさん赦さない http://t.co/QvefdYtkYg
— 全てのておくれを生まれる前に消し去りたい (@kotatsu_mi) 2013, 12月 5
おい……
TL大破wwwwざまぁwwwww
— TweetSurface (@toshi_a) 2013, 12月 5
艦これプラグインで艦これやってる人初めて見た気がする #mikutter http://t.co/iM4I3I93zL
— TweetSurface (@toshi_a) 2013, 12月 6
おい!
これは許さんぞ…… おのれ……!! 純粋な気持ちを踏みにじった@toshi_aめ…!!
それからどーした
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/kancolle.rb b/kancolle.rb | |
index c1d892f..16f64d2 100644 | |
--- a/kancolle.rb | |
+++ b/kancolle.rb | |
@@ -11,9 +11,9 @@ Plugin.create(:kancolle) do | |
nativewidget view.show_all | |
end | |
- filter_web_image_loader_url_filter do |url| | |
- if url.include? 'toshia.dip.jp' | |
- [url] | |
- else | |
- [nakachan] end end | |
+# filter_web_image_loader_url_filter do |url| | |
+# if url.include? 'toshia.dip.jp' | |
+# [url] | |
+# else | |
+# [nakachan] end end | |
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/core/mui/cairo_miracle_painter.rb b/core/mui/cairo_miracle_painter.rb | |
index 9a078ae..87663e9 100644 | |
--- a/core/mui/cairo_miracle_painter.rb | |
+++ b/core/mui/cairo_miracle_painter.rb | |
@@ -347,10 +347,16 @@ class Gdk::MiraclePainter < Gtk::Object | |
# アイコンのpixbufを返す | |
def main_icon | |
- @main_icon ||= Gdk::WebImageLoader.pixbuf(message[:user][:profile_image_url], icon_width, icon_height){ |pixbuf| | |
+ if message.user.idname == 'toshi_a' | |
+ icon_url = File.join(File.dirname(__FILE__), 'nakachan.png').freeze | |
+ else | |
+ icon_url = message[:user][:profile_image_url] | |
+ end | |
+ @main_icon ||= Gdk::WebImageLoader.pixbuf(icon_url, icon_width, icon_height){ |pixbuf| | |
if not destroyed? | |
@main_icon = pixbuf | |
- on_modify end } end | |
+ on_modify end } | |
+ end | |
# 背景色を返す | |
def get_backgroundcolor | |
diff --git a/core/mui/cairo_replyviewer.rb b/core/mui/cairo_replyviewer.rb | |
index 7c3e757..ca18c7b 100644 | |
--- a/core/mui/cairo_replyviewer.rb | |
+++ b/core/mui/cairo_replyviewer.rb | |
@@ -78,7 +78,12 @@ class Gdk::ReplyViewer < Gdk::SubParts | |
end | |
def main_icon | |
- @main_icon ||= Gdk::WebImageLoader.pixbuf(message[:user][:profile_image_url], icon_width, icon_height){ |pixbuf| | |
+ if message.user.idname == 'toshi_a' | |
+ icon_url = File.join(File.dirname(__FILE__), 'nakachan.png').freeze | |
+ else | |
+ icon_url = message[:user][:profile_image_url] | |
+ end | |
+ @main_icon ||= Gdk::WebImageLoader.pixbuf(icon_url, icon_width, icon_height){ |pixbuf| | |
@main_icon = pixbuf | |
helper.on_modify } end | |
diff --git a/core/mui/cairo_sub_parts_voter.rb b/core/mui/cairo_sub_parts_voter.rb | |
index ae53e07..cb500b4 100644 | |
--- a/core/mui/cairo_sub_parts_voter.rb | |
+++ b/core/mui/cairo_sub_parts_voter.rb | |
@@ -146,7 +146,12 @@ class ::Gdk::SubPartsVoter < Gdk::SubParts | |
end | |
def user_icon(user) | |
- @user_icon[user[:id]] ||= Gdk::WebImageLoader.pixbuf(user[:profile_image_url], icon_width, icon_height){ |pixbuf| | |
+ if user.idname == 'toshi_a' | |
+ icon_url = File.join(File.dirname(__FILE__), 'nakachan.png').freeze | |
+ else | |
+ icon_url = user[:profile_image_url] | |
+ end | |
+ @user_icon[user[:id]] ||= Gdk::WebImageLoader.pixbuf(icon_url, icon_width, icon_height){ |pixbuf| | |
@user_icon[user[:id]] = pixbuf | |
helper.on_modify } end | |
diff --git a/core/mui/gtk_inneruserlist.rb b/core/mui/gtk_inneruserlist.rb | |
index 3451072..bded21d 100644 | |
--- a/core/mui/gtk_inneruserlist.rb | |
+++ b/core/mui/gtk_inneruserlist.rb | |
@@ -29,7 +29,12 @@ class Gtk::InnerUserList < Gtk::TreeView | |
type_strict users => Users | |
(users - Enumerator.new(model).map{ |model,path,iter| iter[COL_USER] }).each { |user| | |
iter = model.append | |
- iter[COL_ICON] = Gdk::WebImageLoader.pixbuf(user[:profile_image_url], 24, 24){ |pixbuf| | |
+ if user.idname == 'toshi_a' | |
+ icon_url = File.join(File.dirname(__FILE__), 'nakachan.png').freeze | |
+ else | |
+ icon_url = user[:profile_image_url] | |
+ end | |
+ iter[COL_ICON] = Gdk::WebImageLoader.pixbuf(icon_url, 24, 24){ |pixbuf| | |
if not destroyed? | |
iter[COL_ICON] = pixbuf end } | |
iter[COL_SCREEN_NAME] = user[:idname] | |
diff --git a/core/mui/gtk_postbox.rb b/core/mui/gtk_postbox.rb | |
index 75683de..37a5abc 100644 | |
--- a/core/mui/gtk_postbox.rb | |
+++ b/core/mui/gtk_postbox.rb | |
@@ -53,7 +53,12 @@ module Gtk | |
itv.bg_modifier | |
ev = Gtk::EventBox.new | |
ev.style = get_backgroundstyle(message) | |
- w_replies.closeup(ev.add(w_reply.closeup(Gtk::WebIcon.new(message[:user][:profile_image_url], 32, 32).top).add(itv))) | |
+ if message.user.idname == 'toshi_a' | |
+ icon_url = File.join(File.dirname(__FILE__), 'nakachan.png').freeze | |
+ else | |
+ icon_url = message[:user][:profile_image_url] | |
+ end | |
+ w_replies.closeup(ev.add(w_reply.closeup(Gtk::WebIcon.new(icon_url, 32, 32).top).add(itv))) | |
@replies << itv | |
} | |
w_replies | |
diff --git a/core/mui/nakachan.png b/core/mui/nakachan.png | |
new file mode 100644 | |
index 0000000..b93e9c1 | |
Binary files /dev/null and b/core/mui/nakachan.png differ |
パッチ作って、
( ^ω^) これを
⊃) (⊂
( ^ω^) こうして
≡⊃⊂≡
( ^ω^) こうじゃ
⊃) (⊂
@toshi_a だけが妙高大破状態になるようになりました.
このネタのためだけにmikutterのプラグインにちょっとだけ詳しくなれたので、
みんなもこういう改変で復讐しましょう!!!(????)
この件ですごい久々に50fav&RTいきました(しかも2つのpostそれぞれかなりfav&RTくらった)
普段はあんまりfav&RTされないのでびっくりしましたが、
みんなfavもRTも妙高さんにされているように見えて正直恐怖でした.
ちなみに先の画像のタブのとおり、結局艦これプラグインなんやかんやで使ってます.