手游端自定义选人界面说明

原文件:手游端自定义选人界面说明.docx 更新时间:2026-04-07 12:07:50 大小:31.8 KB 图片:0 作者:Administrator

手游端自定义选人界面说明

手游端自定义选人界面说明

  •  

手游端可以通过修改缓存文件内login.json来进行自定义配置,可实现单职业选角界面

  •  
  •  

文件内容如下:(需要使用utf-8编码), “//“这种备注没有实际意义,根据需要可以删掉

  •  
  •  

下面脚本是仅男战士职业的选取,如果需要自己额外修改其他职业,去对应修改自己客户端更新后缓存内的对应文件

  •  
{
  "defaultPeople": 1,
  "typeList": [
    {
      "index": 1,
      "name": "男战士",
      "res": "titile1.png",
      "pos": {
        "x": 80,
        "y": 120,
        "width": 100,
        "height": 80
      }
    },{
      "index": 4,
      "name": "女战士",
      "res": "titile1.png",
      "pos": {
        "x": 50,
        "y": 120,
        "width": 100,
        "height": 80
      }
    }
  ],
  "Panel_info": {
    "//":"配置角色娃娃在屏幕X轴位置",
    "precentX": 0.5
  },
  "Panel_anim": {
    "//":"配置名字文字偏移",
    "precentX": 0.5
  },
  "Node_anim": {
    "//":"配置角色娃娃Y轴高度",
    "num": 25
  },
  "layout_job": [
    {
      "//":"战士,那个职业图标加上文字的位置配置",
      "index": 1,
      "name": "战士",
      "pos": {
        "x": 291,
        "y": 319
      }
    }
  ],
  "Button_sex": [
    {
      "//":"性别男女的坐标配置",
      "index": 1,
      "name": "男",
      "pos": {
        "x": 321,
        "y": 394
      }
    },
    {
      "//":"性别男女的坐标配置",
      "index": 2,
      "name": "女",
      "pos": {
        "x": 371,
        "y": 394
      }
    }
  ],
  "showInfo": {
    "Image_bg": {
      "//":"配置角色创建背景",
      "res": "12840.png",
      "pos": {
        "x": 332,
        "y": 252,
        "width": 100,
        "height": 100
      }
    },
    "Button_close": {
      "//":"配置角色创建关闭按钮",
      "res": "...",
      "pos": {
        "x": 467,
        "y": 506,
        "width": 100,
        "height": 100
      }
    },
    "inputbg": {
      "//":"配置角色创建输入框背景",
      "res": "...",
      "pos": {
        "x": 344,
        "y": 435,
        "width": 200,
        "height": 100
      }
    },
    "input": {
      "//":"配置角色创建输入框",
      "pos": {
        "x": 289,
        "y": 435,
        "width": 200,
        "height": 200
      }
    },
    "Button_rand": {
      "//":"配置角色创建骰子按钮",
      "name": "骰子",
      "res": "222.png",
      "pos": {
        "x": 425,
        "y": 432,
        "width": 200,
        "height": 200
      }
    },
    "Text_desc":{
      "pos": {
        "x": 330,
        "y": 249
      },
      "//":"可以增加参数代表是否显示, 参数是visible  取值0不显示,取值1为显示"
    },
    "ImgHairBg": {
      "//":"配置角色创建发型背景",
      "pos": {
        "x": 344,
        "y": 156,
        "width": 54,
        "height": 54
      }
    },
    "ImgHead": {
      "//":"配置角色创建头像",
      "pos": {
        "x": 344,
        "y": 156,
        "width": 54,
        "height": 54
      }
    },
    "Img_Hair": {
      "//":"配置角色创建发型",
      "pos": {
        "x": 344,
        "y": 156,
        "width": 50,
        "height": 50
      }
    },
    "LayoutHair_1": {
      "//":"配置角色创建发型",
      "pos": {
        "x": 284,
        "y": 95,
        "width": 120,
        "height": 27
      }
    },
    "LayoutHair_2": {
      "//":"配置角色创建发型染色",
      "pos": {
        "x": 284,
        "y": 65,
        "width": 120,
        "height": 27
      }
    },
    "Button_submit": {
      "name": "确定按钮",
      "pos": {
        "x": 406,
        "y": 26,
        "width": 68,
        "height": 30
      },
      "visible": 1
    },
    "Button_start": {
      "name": "开始",
      "pos": {
        "x": 495,
        "y": 28,
        "width": 128,
        "height": 45
      }
    },
    "Button_create": {
      "name": "创建人物",
      "pos": {
        "x": 50,
        "y": 23,
        "width": 143,
        "height": 42
      }
    },
    "Button_delete": {
      "name": "删除人物",
      "pos": {
        "x": 250,
        "y": 23,
        "width": 143,
        "height": 42
      }
    },
    "Button_restore": {
      "name": "恢复人物",
      "pos": {
        "x": 730,
        "y": 23,
        "width": 143,
        "height": 42
        }
      },
        "Button_leave": {
        "name": "退出",
        "res": "btn_login_quit.png",
        "pos": {
          "x": 930,
          "y": 23,
          "width": 143,
          "height": 42
      }
    },
    "info2": {
      "Image_name": {
        "img": "角色2姓名",
        "pos": {
          "x": -19,
          "y": 15,
          "width": 46,
          "height": 19
        }
      },
      "Image_12": {
        "//":"角色2配置姓名框背景",
        "pos": {
          "x": 5,
          "y": 15
        }
      },
      "Text_name_2": {
        "pos": {
          "//":"角色2配置名字文字偏移",
          "x": 65,
          "y": 15
        }
      },
      "Image_job": {
        "//":"角色2配置职业",
        "pos": {
          "x": 175,
          "y": 15,
          "width": 46,
          "height": 19
        }
      },
      "Image_12_0": {
        "//":"角色2配置职业框背景",
        "pos": {
          "x": 200,
          "y": 15
        }
      },
      "Text_job_2": {
        "//":"角色2配置职业文字偏移",
        "pos": {
          "x": 220,
          "y": 15
        }
      },
      "Image_level": {
        "//":"角色2配置等级",
        "pos": {
          "x": 300,
          "y": 15,
          "width": 46,
          "height": 19
        }
      },
      "Image_12_0_0": {
        "//":"角色2配置等级背景框",
        "pos": {
          "x": 326,
          "y": 15
        }
      },
      "Text_level_2": {
        "//":"角色2配置等级文字偏移",
        "pos": {
          "x": 370,
          "y": 15
        }
      }
      }
    ,
    "info1": {
      "//":"角色1配置痛角色2",
      "Image_name": {
        "img": "姓名",
        "pos": {
          "x": 21,
          "y": 15,
          "width": 46,
          "height": 19
        }
      },
      "Image_12": {
        "pos": {
          "x": 45,
          "y": 15
        }
      },
      "Text_name_1": {
        "pos": {
          "x": 105,
          "y": 15
        }
      },
      "Image_job": {
        "pos": {
          "x": 210,
          "y": 15,
          "width": 46,
          "height": 19
        }
      },
      "Image_12_0": {
        "pos": {
          "x": 235,
          "y": 15
        }
      },
      "Text_job_1": {
        "pos": {
          "x": 255,
          "y": 15
        }
      },
      "Image_level": {
        "pos": {
          "x": 320,
          "y": 15,
          "width": 46,
          "height": 19
        }
      },
      "Image_12_0_0": {
        "pos": {
          "x": 345,
          "y": 15
        }
      },
      "Text_level_1": {
        "pos": {
          "x": 395,
          "y": 15
        }
      }
    },
      "img_login": {
        "///":"选区界面底部大图",
        "res": "frame_login_bot.png",
        "pos": {
          "x": 568,
          "y": 0,
          "width": 1136,
          "height": 158
        },
        "//":"本参数代表是否显示底部大图",
        "visible": 1
      }
  }
  }


本页面由服务器脚本从原始 DOCX 自动生成。排版如与 Word 略有差异,请以原始 DOCX 为准。