// 生成と終了 public ユーザリスト() { using (Log.Block(FDKUtilities.現在のメソッド名)) { var image = (画像)null; // ユーザパネル this._ユーザパネル = new Dictionary <PlayMode, 画像>(); image = new 画像(@"$(System)images\認証\パネル_0.png"); this._ユーザパネル.Add(PlayMode.BASIC, image); image = new 画像(@"$(System)images\認証\パネル_1.png"); this._ユーザパネル.Add(PlayMode.EXPERT, image); // ユーザパネル(光彩付き) this._ユーザパネル光彩付き = new Dictionary <PlayMode, 画像>(); image = new 画像(@"$(System)images\認証\パネル_0_光彩あり.png"); this._ユーザパネル光彩付き.Add(PlayMode.BASIC, image); image = new 画像(@"$(System)images\認証\パネル_1_光彩あり.png"); this._ユーザパネル光彩付き.Add(PlayMode.EXPERT, image); // 肩書パネル this._ユーザ肩書きパネル = new Dictionary <PlayMode, 画像>(); image = new 画像(@"$(System)images\認証\肩書きパネル_0.png"); this._ユーザ肩書きパネル.Add(PlayMode.BASIC, image); image = new 画像(@"$(System)images\認証\肩書きパネル_1.png"); this._ユーザ肩書きパネル.Add(PlayMode.EXPERT, image); // ユーザ名 this._ユーザ名 = new 文字列画像() { 表示文字列 = "", フォントサイズpt = 46f, 描画効果 = 文字列画像.効果.縁取り, 縁のサイズdpx = 6f, 前景色 = Color4.Black, 背景色 = Color4.White, }; this._光彩アニメーションを開始する(); } }
public static 画像?ノード画像を生成する(VariablePath?ノード画像ファイルの絶対パス) { if (ノード画像ファイルの絶対パス is null) { return(null); } try { var image = new 画像(ノード画像ファイルの絶対パス.数なしパス); //Log.Info( $"ノード画像を生成しました。[{ノード画像ファイルの絶対パス.変数付きパス}]" ); return(image); } catch (Exception e) { Log.ERROR($"ノード画像の生成に失敗しました。[{ノード画像ファイルの絶対パス.変数付きパス}][{Folder.絶対パスをフォルダ変数付き絶対パスに変換して返す( e.Message )}]"); return(null); } }
public Panel(表示方法 type, VariablePath path) { this.表示方法 = type; this.画像の絶対パス = path; this.画像 = new 画像(path); }