public ModAssist() { labelWidth = GUILayout.Width(GUIUtil.FixPx(120)); textHeight = GUILayout.Height(fontSize * 1.8f); // GUI初期設定 buttonStyle.fontSize = fontSize; textStyle.fontSize = fontSize; areaStyle.fontSize = fontSize; labelStyle.fontSize = fontSize; toggleStyle.fontSize = fontSize; toolbarStyle.fontSize = fontSize; selectionStyle.fontSize = fontSize; toggleStyle.onNormal.textColor = Color.green; toggleStyle.onHover.textColor = Color.green; toolbarStyle.onNormal.textColor = Color.green; toolbarStyle.onHover.textColor = Color.green; buttonStyle.onNormal.textColor = Color.green; buttonStyle.onHover.textColor = Color.green; selectionStyle.onNormal.textColor = Color.green; selectionStyle.onHover.textColor = Color.green; wearMpns = new GUIContent[Params.WearMPNs.Count()]; int i = 0; foreach (var mpn in Params.WearMPNs.Keys) { wearMpns[i] = new GUIContent(mpn); i++; } listStyle.normal.textColor = Color.white; listStyle.fontSize = fontSize; listStyle.onHover.background = listStyle.hover.background = new Texture2D(2, 2); listStyle.padding.left = listStyle.padding.right = listStyle.padding.top = listStyle.padding.bottom = 4; wearMpnsCombo = new LayoutComboBox(wearMpns[0], wearMpns, buttonStyle, boxStyle, listStyle); }