@@ -0,0 +1,1379 @@
+/**%0A * Copyright (C) 2013 MK124%0A *%0A * This program is free software; you can redistribute it and/or modify%0A * it under the terms of the GNU General Public License version 2 as%0A * published by the Free Software Foundation.%0A *%0A * This program is distributed in the hope that it will be useful,%0A * but WITHOUT ANY WARRANTY; without even the implied warranty of%0A * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the%0A * GNU General Public License for more details.%0A */%0A%0Apackage net.gtaun.wl.common.textdraw;%0A%0Aimport net.gtaun.shoebill.SampObjectFactory;%0Aimport net.gtaun.shoebill.object.Player;%0Aimport net.gtaun.shoebill.object.PlayerTextdraw;%0A%0Apublic final class TextDrawUtils%0A%7B%0A%09public static PlayerTextdraw createPlayerText(SampObjectFactory f, Player player, float x, float y, String text)%0A%09%7B%0A%09%09PlayerTextdraw textdraw = f.createPlayerTextdraw(player, x, (y-50)/1.075f+50, text);%0A%09%09return textdraw;%0A%09%7D%0A%09%0A//%09public static PlayerTextdraw createPlayerTextBG(SampObjectFactory f, Player player, float x, float y, float w, float h)%0A//%09%7B%0A//%09%09int lines = Math.round((h - 5) / 5.0f);%0A//%09%09PlayerTextdraw textdraw = f.createPlayerTextdraw(player, x+4, (y-50)/1.075f+50, StringUtils.repeat(%22~n~%22, lines));%0A//%09%09textdraw.setUseBox(true);%0A//%09%09textdraw.setLetterSize(1.0f, 0.5f);%0A//%09%09textdraw.setTextSize(x+w-4, h-7);%0A//%09%09return textdraw;%0A//%09%7D%0A%09%0A%09%0A%09private TextDrawUtils()%0A%09%7B%0A%09%09%0A%09%7D%0A%7D%0A

移动 TextDrawUtils 到 wl-common 库。